Missing Operator in query expression

Indigo

Registered User.
Local time
Yesterday, 22:45
Joined
Nov 12, 2008
Messages
241
I have been reading until my eyes are blurry and I can't see what I have missed on this... I am using Access 2010 and trying to get the following statement to work in VBA:

Code:
strSQL = "SELECT * FROM qryByTimeEmail" & _
'                     " WHERE qryByTimeEmail.ShiftDate = Between #" & Forms!SearchByTime!SDate & "#" & " And #" & Forms!SearchByTime!EDate & "#" & " And qryByTimeEmail.ShiftID = " & Forms!SearchByTime!ShiftID

Another pair of eyes to see what I am missing would be appreciated. Thank you!
 
Try

remove this equal sign

Code:
..........ShiftDate = Between .....
 
Yes! I just caught that myself... sigh, TGIF!
 

Users who are viewing this thread

Back
Top Bottom