Now this code is based on FORM entry, but you can adjust it if the user is entering on a sheet.
I do my checks via code (not in the field property)
All in 1 place, easier to change...say a SAVE_click event...
usage:
if IsValidForm() then SaveData
Private Function IsValidForm() As Boolean
Dim vMsg
Select Case True
Case IsNull(dtpWeekOf)
vMsg = "Date field missing"
Case IsNull(cboUser)
vMsg = "User name is missing"
Case IsNull(txtEmail)
vMsg = "Email field is missing"
End Select
If vMsg <> "" Then MsgBox vMsg, vbCritical, "Required Field"
IsValidForm = vMsg = ""
End Function
Bookmarks