I am having problems with an SQL query from an .asp page to an access database, can someone please help!!!.
I have the following SQL which works out which records were raised between the user specified start and end dates
strSQL="Select ProblemDate, StartTime, Service, Descrip, BusText, ILNumber FROM ILDatabase WHERE ProblemDate BETWEEN #" & StartDate & "# AND #" & EndDate &"#" & " ORDER BY ILNumber DESC"
I now want to tie this down further so that I only get records raised between a 'StartTme' on the StartDate, and an 'EndTme' on the EndDate.
I've tried several variations but end up with errors such as
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.
CAN ANYONE TELL ME WHAT I NEED TO DO
Thanks
I have the following SQL which works out which records were raised between the user specified start and end dates
strSQL="Select ProblemDate, StartTime, Service, Descrip, BusText, ILNumber FROM ILDatabase WHERE ProblemDate BETWEEN #" & StartDate & "# AND #" & EndDate &"#" & " ORDER BY ILNumber DESC"
I now want to tie this down further so that I only get records raised between a 'StartTme' on the StartDate, and an 'EndTme' on the EndDate.
I've tried several variations but end up with errors such as
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.
CAN ANYONE TELL ME WHAT I NEED TO DO
Thanks