Hello,
I have the following code:
If Not IsNull(DLookup("DT", "HistBase", "DT='" & myDate & "'")) Then
Using it i try to check if a certain value of field DT in table HistBase exists.
This code works when DT is of type String, but it crashes when DT is of type Date (which is what it is)
I am guessing it's because you CAN'T put a date in single quotes (aka '20/01/2003').
Any ideas of how to go around it?
I have the following code:
If Not IsNull(DLookup("DT", "HistBase", "DT='" & myDate & "'")) Then
Using it i try to check if a certain value of field DT in table HistBase exists.
This code works when DT is of type String, but it crashes when DT is of type Date (which is what it is)
I am guessing it's because you CAN'T put a date in single quotes (aka '20/01/2003').
Any ideas of how to go around it?