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:
Another pair of eyes to see what I am missing would be appreciated. Thank you!
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!