Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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

Hi,

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.
 
Old April 12th, 2008, 05:05 PM
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This link should help explain what is going on:
http://allenbrowne.com/ser-36.html

HTH RuralGuy (RG for short) acXP WinXP Pro




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





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