Textbox value has to be less than another

waq963

Registered User.
Local time
Today, 13:25
Joined
Jan 27, 2009
Messages
84
Hi, Basically i have a Scoring form where a user enters a score but there is a maximum possible score textbox. How could i code the score textbox to only accept values that are less than the maximum score textbox? Thanks
 
Last edited:
Simply use a validation check on the after update of the control

Code:
If Me.Score > 100 Then
   MsgBox "Maximum value exceeded, revise and retry",,"Error"
   Me.Score = ""
   Me.Score.SetFocus
End If
 
Cheers Mate, worked perfectly.
 

Users who are viewing this thread

Back
Top Bottom