Hows it going?
I have a 1 field query that gives the maxdate of another query i want to use this date to ensure a later date is not entered into a text box.
here is the code:
If txtDateUpTo <= MaxDate Then
MsgBox "Please enter a date after " & MaxDate & vbCrLf & "Please refer to Previous Reports", vbOKOnly, "Date already batched"
Exit Sub
End If
any idea how to get this date into variable, i've tried to use a textbox with th query as a recordsource but it wouldn't go in.
thanks alot
frank
I have a 1 field query that gives the maxdate of another query i want to use this date to ensure a later date is not entered into a text box.
here is the code:
If txtDateUpTo <= MaxDate Then
MsgBox "Please enter a date after " & MaxDate & vbCrLf & "Please refer to Previous Reports", vbOKOnly, "Date already batched"
Exit Sub
End If
any idea how to get this date into variable, i've tried to use a textbox with th query as a recordsource but it wouldn't go in.
thanks alot
frank