Hello,
I'm trying to use the following statement from a continuous form but im getting a type missmatch error
I have a text box on my form that can be blank or have a date in it and if the current date is 6 months past or the textbox is empty then msg prompt.
I'm trying to use the following statement from a continuous form but im getting a type missmatch error
Code:
Private Sub VisitorName_AfterUpdate()
If Me.VisitorType.Value = 3 And CDate(Me.TrainingDate) < Date - 180 Or CDate(Me.TrainingDate) = "" Then
MsgBox "This contractor requires training"
End If
End Sub
I have a text box on my form that can be blank or have a date in it and if the current date is 6 months past or the textbox is empty then msg prompt.