OliverWilton
Registered User.
- Local time
- Today, 23:54
- Joined
- Nov 25, 2008
- Messages
- 15
Microsoft have offered support upon giving the VBA code for a required field behind an exit command button for 1 box. I'm very new and would like it to check behind multiple boxes.
The code Offered was:
Any help on having that for say 4-5 box checks? thank you!
The code Offered was:
If IsNull(Me![Field1]) Then
If MsgBox("'Field1' must contain a value." & Chr(13) & Chr(10) & _
"Press 'OK' to return and enter a value." & Chr(13) & Chr(10) & _
"Press 'Cancel' to abort the record.", _
vbOKCancel, "A Required field is Null") = vbCancel Then
DoCmd.Close
Else
Me![Field1].SetFocus
End If
Else
DoCmd.Close
End If
Any help on having that for say 4-5 box checks? thank you!