Can anyone see the error in the following SQL statement -
"WHERE times.timein Between #" & FormatDateTime(datdays,1) & "# AND #" & FormatDateTime(datend,1) & "# AND times.tech Is Not Null AND times.pharm Is Not Null AND DateDiff("d",times.timein,times.timefin)<1;"
The error lies in the datediff part saying expected end of statement. However the same statement works fine in ACCESS. Is there something else I need to do for ASP
please help
thanks
"WHERE times.timein Between #" & FormatDateTime(datdays,1) & "# AND #" & FormatDateTime(datend,1) & "# AND times.tech Is Not Null AND times.pharm Is Not Null AND DateDiff("d",times.timein,times.timefin)<1;"
The error lies in the datediff part saying expected end of statement. However the same statement works fine in ACCESS. Is there something else I need to do for ASP
please help
thanks