J
jubiiab via AccessMonster.com
Hi!
I have a form with a simple code:
Private Sub Form_Open(Cancel As Integer)
If [Service] < Now() Then
MsgBox "Service date overdue!", vbInformation, "Service Date"
End If
End Sub
The code above works fine if I just have one record in my form with a date.
If the service field is empty I get an error message because the form has a
null value in that field. I want the option to have that field to be empty.
What should I add more to the code?
I have a form with a simple code:
Private Sub Form_Open(Cancel As Integer)
If [Service] < Now() Then
MsgBox "Service date overdue!", vbInformation, "Service Date"
End If
End Sub
The code above works fine if I just have one record in my form with a date.
If the service field is empty I get an error message because the form has a
null value in that field. I want the option to have that field to be empty.
What should I add more to the code?