nookiemon
04-30-2006, 06:56 AM
Hi, I'm running the following query on my webpage.asp from my access database.
SELECT schedules.Date, schedules.Time, schedules.Show FROM schedules WHERE (((schedules.Date)=#" & SetDate & "#))
The variable SetDate is in the following format DD/MM/YYYY
When I run the query it translates this as M/D/YYYY thus bringing up the wrong date. i.e when SetDate = 02/05/2006 the query is
SELECT schedules.Date, schedules.Time, schedules.Show FROM schedules WHERE (((schedules.Date)=#5/2/2006#))
How do I go about fixing this?
Many thanks :)
SELECT schedules.Date, schedules.Time, schedules.Show FROM schedules WHERE (((schedules.Date)=#" & SetDate & "#))
The variable SetDate is in the following format DD/MM/YYYY
When I run the query it translates this as M/D/YYYY thus bringing up the wrong date. i.e when SetDate = 02/05/2006 the query is
SELECT schedules.Date, schedules.Time, schedules.Show FROM schedules WHERE (((schedules.Date)=#5/2/2006#))
How do I go about fixing this?
Many thanks :)