Greetings Everyone,
In the TableAdapter configuration wizard I am using this query:
Can you tell me the correct syntax to change the #5/1/2010# AND #5/30/2010# so the WHERE clause uses dteStartDate AND dteStartDate which are date variables ?Code:SELECT AttendanceID, StudentID, ClassId, DateOfClass, Absent FROM Attendance WHERE (DateOfClass BETWEEN #5/1/2010# AND #5/30/2010#)
I tried this but it tells me I need to use the to_date function. dteStartDate is already a date variable so I know my syntax is wrong.
Thanks.Code:SELECT AttendanceID, StudentID, ClassId, DateOfClass, Absent FROM Attendance WHERE (DateOfClass BETWEEN #" & dteStartDate & "# AND #" & dteEndDate & "#)
Truly,
Emad




Reply With Quote