Access reversing dates

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Help please

I have a date field on a form dd/mm/yyyy this date is passed into a sql
string and for some reason the date changes to mm/dd/yyyy and as all
records are dd/mm/yyyy the results are not as expected

Any advice will be gratefully received

Cheers

Paul
 
Try explicitly formatting the date in your SQL strings. This is the SQL
sees the dates correctly . . .

jetdatefmt = "\#mm\/dd\/yyyy\#"

Format$([datefield], jetdatefmt)

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top