Hi,
i have a form that requires validation. i am using the following code:
Private Sub Form_BeforeUpda te(Cancel As Integer)
If IsNull(Me.numbe r) Then
MsgBox "number is required", vbOKOnly
Cancel = True
Me.number.SetFo cus
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_BeforeUpda te(Cancel As Integer)
If IsNull(Me.numbe r) Then
MsgBox "number is required", vbOKOnly
Cancel = True
Me.number.SetFo cus
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
Comment