Beany
Registered User.
- Local time
- Today, 22:46
- Joined
- Nov 12, 2006
- Messages
- 155
Hi,
i have a form that requires validation. i am using the following code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.number) Then
MsgBox "number is required", vbOKOnly
Cancel = True
Me.number.SetFocus
End If
i have repeated the above code for other fields.........
The problem i have is, if i click 'x' and before it allows me to exit, it brings up the validations, one by one (so annoying).
Is there any way THAT it can show all the validations at once??? in one message????
THANKS
i have a form that requires validation. i am using the following code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.number) Then
MsgBox "number is required", vbOKOnly
Cancel = True
Me.number.SetFocus
End If
i have repeated the above code for other fields.........
The problem i have is, if i click 'x' and before it allows me to exit, it brings up the validations, one by one (so annoying).
Is there any way THAT it can show all the validations at once??? in one message????
THANKS