Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 11th, 2008, 09:07 AM
Friend of Wrox
Join Date: Mar 2004
Location: Ottawa, , Canada.
Posts: 139
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel to Access - Date gets reversed


I'm storing data from Excel into Access (both 2k3)... but the day & month values are getting reversed if the day is less then 13...

For example... in excel, I have a cell that has 11/04/2008 (entered as Ctrl + ;), and in Access when I format the cell as dd/mmmm/yyyy it comes out as 11/November/2008

Any suggestions on how to get around this... makes it very difficult to later do queries based on dates when everything is backwards...

Also, I'm inserting the data as so:

 Dim order_commit_dt As Date

order_commit_dt = Range("A" & curRow).Value
VALUES (#" & order_commit_dt & "#,...

Thank you.
Reply With Quote
  #2 (permalink)  
Old April 12th, 2008, 05:05 PM
Authorized User
Join Date: Jan 2006
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts

This link should help explain what is going on:

HTH RuralGuy (RG for short) acXP WinXP Pro
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert text from excel to proper date in access bprodman Access VBA 1 June 18th, 2007 03:48 PM
Data pump field order reversed jilly SQL Server DTS 2 May 16th, 2007 07:31 AM
SQL Date query in Excel VBA lanewalk Excel VBA 2 September 27th, 2006 02:04 AM
Converting excel data to Access using excel VBA ShaileshShinde VB Databases Basics 1 April 26th, 2006 07:57 AM

All times are GMT -4. The time now is 05:09 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.