Hi guys,
I'm having problem writing an SQL statement where it will selcet records according to the date range submitted. Can someone help solve the issue listed below. I'm using MS access xp version with windows xp:
Dim strSQL AsString = "select * from StudentRegister WHERE DOB BETWEEN #2000/09/01 12:00:00 AM# AND #2001-09-31 11:59:59 PM#"
the error i keep on getting is:
Syntax error in date in query expression 'DOB BETWEEN #2000/09/01 12:00:00 AM# AND #2001-09-31 11:59:59 PM#'.
Mac
I'm having problem writing an SQL statement where it will selcet records according to the date range submitted. Can someone help solve the issue listed below. I'm using MS access xp version with windows xp:
Dim strSQL AsString = "select * from StudentRegister WHERE DOB BETWEEN #2000/09/01 12:00:00 AM# AND #2001-09-31 11:59:59 PM#"
the error i keep on getting is:
Syntax error in date in query expression 'DOB BETWEEN #2000/09/01 12:00:00 AM# AND #2001-09-31 11:59:59 PM#'.
Mac