P
P-chu via AccessMonster.com
A little assistance with this one please. I have a single form for data
entry. One field is a [date] and the other one is [result]. The [date] is
not to be put in until the form is being closed out, sometimes it is in
transient. So if I put in a date, but forget to change the result to done, I
want a msgbox on that will popup as I am attempting to close the form. I
also do not want the form to close unless I change result to done or remove
the date instead. Here is what I have:
Private Sub Form_Close()
If Not IsNull[date] and [result] = "pending" Then
msgbox "Either fill in the done result or delete the completion date."
End If
End Sub
I'm getting a compile error on the [date] or the not isnull. Any suggestions
are greatly. I'm sure it's probably something simple I am just not looking
at correctly.
Thanks.
entry. One field is a [date] and the other one is [result]. The [date] is
not to be put in until the form is being closed out, sometimes it is in
transient. So if I put in a date, but forget to change the result to done, I
want a msgbox on that will popup as I am attempting to close the form. I
also do not want the form to close unless I change result to done or remove
the date instead. Here is what I have:
Private Sub Form_Close()
If Not IsNull[date] and [result] = "pending" Then
msgbox "Either fill in the done result or delete the completion date."
End If
End Sub
I'm getting a compile error on the [date] or the not isnull. Any suggestions
are greatly. I'm sure it's probably something simple I am just not looking
at correctly.
Thanks.