Using a form bound to a table in Access 2003, I want to prevent users
from entering a future date in a text box. In the after update event
for the text box I have:
If [ClosedDate] > Now() Then
MsgBox "The Closed Date must not be greater than today's date.", vbOKOnly
Cancel = True
End If
However, when I compile the database I get an error:
"Variable not defined"
What am I missing?
from entering a future date in a text box. In the after update event
for the text box I have:
If [ClosedDate] > Now() Then
MsgBox "The Closed Date must not be greater than today's date.", vbOKOnly
Cancel = True
End If
However, when I compile the database I get an error:
"Variable not defined"
What am I missing?