PC Review


Reply
Thread Tools Rate Thread

Date format in update query

 
 
John
Guest
Posts: n/a
 
      23rd Jun 2006
Hi

How can I ensure that date is always assigned in dd/mm/yyyy format to a date
filed, in an update query?

Thanks

Regards


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      23rd Jun 2006
John, Access does not store dates in a specific format. The format is
applied at display time, and depends on the user's Regional Settings (in the
Windows Control Panel.)

So perhaps your question is, "How can I ensure that Access understands the
dates in the query, and stores the correctly when the Update query
executes?"

I also live in a d/m/y country, and in 15 years of working with Access have
found 3 cases where Access is likely to misunderstand our dates. Details in:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

If the dates are calculated ones, typecasting them in the query can also
help:
Calculated fields misinterpreted
at:
http://allenbrowne.com/ser-45.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> How can I ensure that date is always assigned in dd/mm/yyyy format to a
> date filed, in an update query?
>
> Thanks
>
> Regards



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update date field to Is Null in an update query Owl Microsoft Access Queries 3 17th Feb 2010 04:31 PM
Date() update format RitchieJHicks Microsoft Access Queries 5 4th Dec 2008 12:06 PM
Update Query using date in text format? rstiles@majesticvacations.net Microsoft Access Queries 9 23rd Jan 2007 05:51 PM
Date format in update query John Microsoft Access Queries 3 23rd Jun 2006 07:11 AM
Syntax error in date in query expression for Swiss Italian date format Timothy M Hodgson Microsoft Access Queries 2 25th Mar 2004 04:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 PM.