A.Private Sub cmdOK_Click() If txtUser.Value = "zhangs" And txtPW.Value = "123" Then MsgBox "OK" End if End Sub B.Private Sub cmdOK_Click() If txtUser.Value = "zhangs" Then If txtPW.Value = "123" Then MsgBox "OK" End if End if End Sub C.Private Sub cmdOK_Click() If txtUser.Value = "zhangs" Then If txtPW.Value = "123" Then MsgBox "OK" End if End Sub D.Private Sub cmdOK_Click() If txtUser.Value = "zhangs" and txtPW.Value = "123" Then MsgBox "OK" End If End Sub