I am trying to do a simple select statement where I only select records found with an expiry date >= today. It's an access database and the field is in Date/Time format.
Below are the statements which I have in my asp page but the selection is not working. If I take out the WHERE clause with the date it works fine. It's pretty simple but I must have the syntax wrong.
dim datToday, RS, Conn, SQLQuery
Set Conn = Server.CreateObject("ADODB.Connection"
Set RS=Server.CreateObject("ADODB.RecordSet"
Conn.open "Manufacturing"
datToday = Date()
SQLQuery = "SELECT * FROM CourseInfo WHERE "
SQLQuery = SQLQuery & "ExpiryDate >='" & datToday & "' ORDER BY COURSE"
The error I'm getting is:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC driver does not support the requested properties.
/Manufacturing/DevelWeb/CourseInfo.asp, line 19
Any help would be greatly appreciated.
Thanks
Cheryl aka Tterrapin
Below are the statements which I have in my asp page but the selection is not working. If I take out the WHERE clause with the date it works fine. It's pretty simple but I must have the syntax wrong.
dim datToday, RS, Conn, SQLQuery
Set Conn = Server.CreateObject("ADODB.Connection"
Set RS=Server.CreateObject("ADODB.RecordSet"
Conn.open "Manufacturing"
datToday = Date()
SQLQuery = "SELECT * FROM CourseInfo WHERE "
SQLQuery = SQLQuery & "ExpiryDate >='" & datToday & "' ORDER BY COURSE"
The error I'm getting is:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC driver does not support the requested properties.
/Manufacturing/DevelWeb/CourseInfo.asp, line 19
Any help would be greatly appreciated.
Thanks
Cheryl aka Tterrapin