I am building a web site in ASP using MS Access as the database (for the time being)
I excecute the following SQL query to retrieve records that are still 'open' (e.g the CloseDate must be in the future)
SQL = "SELECT * FROM Project Where CloseDate > #" & Date() & "#;"
This statement returns all the records regardless of the date!
The date in MS Access is defines as a short date (dd/mm/yyyy)
and 'date()' returns todays date in dd/mm/yyyy format
the LCID is set correctly (2057 for UK)
I am having a real head scratch over this.....
I excecute the following SQL query to retrieve records that are still 'open' (e.g the CloseDate must be in the future)
SQL = "SELECT * FROM Project Where CloseDate > #" & Date() & "#;"
This statement returns all the records regardless of the date!
The date in MS Access is defines as a short date (dd/mm/yyyy)
and 'date()' returns todays date in dd/mm/yyyy format
the LCID is set correctly (2057 for UK)
I am having a real head scratch over this.....