G
Guest
OK, I'm totally stumped with this. I need to compare the value of two
controls so that I can pop up the appropriate message in the AfterUpdate
event of Control1 and they are both numbers:
If Me.Control1 > Me.Control2 Then
MsgBox "The number is too large", vbOKOnly
End If
In this case, the message does not popup. However, if I change the operator:
If Me.Control1 < Me.Control2 Then
MsgBox "The number is too large", vbOKOnly
Eng If
The message pops up but actually no comparison was done. The message appears
regardless of the number I enter into Control1. Am I missing something?
Thanks.
ck
controls so that I can pop up the appropriate message in the AfterUpdate
event of Control1 and they are both numbers:
If Me.Control1 > Me.Control2 Then
MsgBox "The number is too large", vbOKOnly
End If
In this case, the message does not popup. However, if I change the operator:
If Me.Control1 < Me.Control2 Then
MsgBox "The number is too large", vbOKOnly
Eng If
The message pops up but actually no comparison was done. The message appears
regardless of the number I enter into Control1. Am I missing something?
Thanks.
ck