R
RitchieJHicks
I currently have the following code in my DB, so that if the user selects any
option other than "Closed", they are forced to enter a diary date.
How can I set the code so that they are not forced to enter a date when the
status is "Closed" OR "Rejected" please?
Private Sub Form_AfterUpdate()
If Me![File Status] <> "Closed" And IsNull(Me![DiaryDate]) Then
MsgBox "You must enter a diary date before you exit this record"
DoCmd.GoToControl "DiaryDate"
Cancel = -1
End If
End Sub
option other than "Closed", they are forced to enter a diary date.
How can I set the code so that they are not forced to enter a date when the
status is "Closed" OR "Rejected" please?
Private Sub Form_AfterUpdate()
If Me![File Status] <> "Closed" And IsNull(Me![DiaryDate]) Then
MsgBox "You must enter a diary date before you exit this record"
DoCmd.GoToControl "DiaryDate"
Cancel = -1
End If
End Sub