DeutchBose
Board Regular
- Joined
- Mar 22, 2004
- Messages
- 83
I'm using a DLookup Function as follows:
Dim ATime As String
Dim APath As String
ATime = Me.lbl1Recent.Caption
APath = DLookup("Path", "QryDateOrder1", "[TimeStamp] = " & ATime)
I get the following error:
Run-time error '3075'
Syntax error (missing operator) in query expression '[TimeStamp] = 1/28/2005 10:08:00 AM'
----
I've tried definining ATime as a Date instead of a String, but that doesn't seem to make a difference...what am I doing wrong?
Dim ATime As String
Dim APath As String
ATime = Me.lbl1Recent.Caption
APath = DLookup("Path", "QryDateOrder1", "[TimeStamp] = " & ATime)
I get the following error:
Run-time error '3075'
Syntax error (missing operator) in query expression '[TimeStamp] = 1/28/2005 10:08:00 AM'
----
I've tried definining ATime as a Date instead of a String, but that doesn't seem to make a difference...what am I doing wrong?