W waq963 Registered User. Local time Today, 13:25 Joined Jan 27, 2009 Messages 84 Feb 13, 2009 #1 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: Feb 13, 2009
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
DCrake Remembered Local time Today, 13:25 Joined Jun 8, 2005 Messages 8,620 Feb 13, 2009 #2 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
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
W waq963 Registered User. Local time Today, 13:25 Joined Jan 27, 2009 Messages 84 Feb 13, 2009 #3 Cheers Mate, worked perfectly.