G
Guest
I am trying to write messages to prompt the user for required fields if a
certain value is entered in a field. Should these messages be placed within
the form's close event? One example is if Status_Code = Active, then
Contract_Execution_Date must be entered. Here's what I tried and it did not
work:
If Me.Status_Code = "Active" And Me.Contract_Execution_Date Is Null Then
MsgBox "Please enter a Contract Execution Date"
End If
Also, Status_Code is required for new records - is there a way I can create
my own message box to replace the one Access automatically displays on close?
I just want it to read a little clearer for the users.
Thanks!
certain value is entered in a field. Should these messages be placed within
the form's close event? One example is if Status_Code = Active, then
Contract_Execution_Date must be entered. Here's what I tried and it did not
work:
If Me.Status_Code = "Active" And Me.Contract_Execution_Date Is Null Then
MsgBox "Please enter a Contract Execution Date"
End If
Also, Status_Code is required for new records - is there a way I can create
my own message box to replace the one Access automatically displays on close?
I just want it to read a little clearer for the users.
Thanks!