General discussion
November 27, 2002 at 11:49 PM
munrrob

Access Dates Problem

by munrrob . Updated 23 years, 7 months ago

I am running Access 97 Office SR-2b on Windows NT 4.0 Workstation SP6a.

I have the following code in a module:

sql = “SELECT *” _
& ” FROM tblWaitingTimes” _
& ” WHERE tblWaitingTimes![wtDate] = #” & oldDate & “#;”

where oldDate is a date in uk format of dd/mm/yyyy.

When processing this the statement shows the date in dd/mm/yyyy but the moves the day and month values around.

The system is set to UK date format with dd/mm/yyyy as the preferred choice.

I know the date is being transposed as I tried placing this in a query and running it.

How can I stop the system transposing the day and month values?

This discussion is locked

All Comments