473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Quick date format converting Access 2007 to 2000

Hi,

Quick one for you, i'm importing a file which has a long date and time format, so once imported i update each date field with the correct format (dd/mm/yyyy).

I wrote this in on click of a button in Access 2007 which works great:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunSQL ("UPDATE " & tName & " SET [Reported Date] = Format([Reported Date],'dd/mm/yyyy'), [Resolved] = Format([Resolved],'dd/mm/yyyy');")
However i run it in Access 2000 and it converts to American style mm/dd/yyyy!?

Any ideas?

Thanks,

Chris
Mar 10 '08 #1
1 1822
PianoMan64
374 Expert 256MB
Hi,

Quick one for you, i'm importing a file which has a long date and time format, so once imported i update each date field with the correct format (dd/mm/yyyy).

I wrote this in on click of a button in Access 2007 which works great:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunSQL ("UPDATE " & tName & " SET [Reported Date] = Format([Reported Date],'dd/mm/yyyy'), [Resolved] = Format([Resolved],'dd/mm/yyyy');")
However i run it in Access 2000 and it converts to American style mm/dd/yyyy!?

Any ideas?

Thanks,

Chris
The reason Chris, maybe because you're regional settings may be set to American Style instead of Europian Settings, Check that out and see if that helps?

Joe P.
Mar 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.