Simple If Statement Help Needed

D

Dave Elliott

I have a control on my form named Rate
I was going to put this on the after update event
If the amount in this box is not 32.50 or 27.50 I need a message box to
appear with a warning.

How can I do this?

Thanks,


Dave
 
K

Klatuu

If MyTextBox <> 32.50 and MyTextBox <> 27.50 Then
Msgbox "Wrong"
Cancel = True
Endif
 
Top