I must have the syntax messed up or something. I have the following code in a Form:
intNum = DLookup("[Num]", "[qryDateExists]", "[Enter Date] = " & txtDateVal)
The query works great... but everytime I run the DLookUp, I get an error stating:
"Run-time error '3075':
Syntax error (missing operator) in query expression '[Enter Date] = 8/20/2001 6:53:27 PM'."
What am I missing?
intNum = DLookup("[Num]", "[qryDateExists]", "[Enter Date] = " & txtDateVal)
The query works great... but everytime I run the DLookUp, I get an error stating:
"Run-time error '3075':
Syntax error (missing operator) in query expression '[Enter Date] = 8/20/2001 6:53:27 PM'."
What am I missing?