Here is the bit that is giving the business
Code: Select all
AND [datecreated] " & " Between #" & startdate & "#" & " And #" & enddate & "#;"
Code: Select all
sqlStr = "SELECT * FROM LO_ENDOFSHIFTSURVEY WHERE location_id='" & locationid & "' AND [datecreated] " & " Between #" & startdate & "#" & " And #" & enddate & "#;"
Incorrect syntax near '#'
[datecreated] field is set to datetime property.
Any help would be greatly appreciated, I have looked all over. Hoping this is something simple for you guys!
Thanks!
Joe