求教代码错误
Private Sub CmdCancel_Click()
TxtInput.Text = ""
TxtInput.TablIndex = 0
End Sub
Private Sub CmdOk_Click()
If TxtInput.Text = "123456" Then MsgBox ("密码正确!") Else MsgBox ("密码错误,请重新输入。")
TxtInput.Text = ""
TxtInput.SetFocus
End If
Private Sub Form_Load()
TxtInput.Text = ""
TxtInput.TablIndex = 0
End Sub