473,386 Members | 1,820 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,386 software developers and data experts.

How to change field format in access?

I have exported data from access 2003 table to excel where my date field was not recognized as date. After looking closely to my table I then realized that I didn't set the field's format to any of the date type. I tried to import the table structure and changed the format to yyyy/mm/. I then appended the data to my new table but still didn't solve the problem. Please help me to solve this.
Dec 15 '10 #1
3 3398
munkee
374 256MB
I am unsure whether this will help too much but I know when working in excel dates and numerics can be hard to manipulate if infact they are being stored as "text" and not true dates.

Dates are stored in excel as a numerical value such as 402600 these are then altered to the nice date format of dd/mm/yyyy etc such as 12/02/1986 using cell formatting. It may be the case that access is also coming up against this issue when you are trying to put the data back.
Dec 15 '10 #2
Lysander
344 Expert 100+
I have always had problems with date fields. The first problem is that a date field is stored as a number. I forget what 0 is, but some significant day in the 1800's. Anyways, the number is different in Excel than it is in Access, well it was in Office 2000.

Also, date formats change across the world, and day and month can get swithed around.

I now store all dates as 3 numbers, day,month,year which means I can handle any date, convert from access to Excel and back, and not have to worry about UK dates being converted to USA dates.
Dec 16 '10 #3
NeoPa
32,556 Expert Mod 16PB
Munkee:
these are then altered to the nice date format of
That's a helpful response, but be careful. Date values are not altered at all. They are simply displayed differently. This may seem an unimportant point, but if you think about it, this confusion is the cause of most misunderstandings that relate to dates and times.

If you remember that dates are stored as dates (numbers exactly as Munkee has explained) and only ever appear as text when they are formatted for display, then they become much easier to work with without issue.

The rule of thumb is always to work with data in its native format, and only ever convert it to text for the purposes of display or transfer, and with a transfer, only when necessary and the other end understands to convert it back from text before loading the data.

PS. I wanted to add, to be absolutely clear, that this is not intended as a criticism of Munkee's post, which is very helpful. It is merely to make a very important point about that one critical issue.
Dec 16 '10 #4

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

Similar topics

1
by: teqnow | last post by:
I created a table with a timestamp field called "date_added", and it defaults to the NOW function. Any way to change the format to get it to default to the current date instead? I really don't want...
2
by: Blake Patterson | last post by:
I have a subroutine I want to run whenever an Access record is updated. Sub Form_BeforeUpdate(Cancel As Integer) Me!LastUpdated = Now End Sub It updates this date field with the current date...
1
by: Lars Netzel | last post by:
Maybe this has more to do with access than anythign else but when I tried to say to a field in Access via ASp.NET I got an error saying that I was trying to insert to many carachters, more than...
3
by: Joachim | last post by:
Hi I am a beginner in VB.NET, and have a problem with empty field in Access I have transfered a worksheet in Excel to Access table. Some of the cels are empty I use VB.NET program to acces...
2
by: sang | last post by:
Hi Pls help to change the Date format in mysql Mysql default storage is yymmdd but i want to store mmddyy. How to change the format. Thanks, Sang
2
by: Alan Mailer | last post by:
I'm sorry if this one has been asked and answered a million times: Is it possible to have a VB6 app alter the name of an *existing* field in Access 2002 database? To be clear, I'm not talking...
3
by: Bface | last post by:
Hi all, Hope everyone had a good holiday. I am having a difficult time changing the date format of a field from Excel. I have never had this problem before. I link the excel spreadsheet to my DB,...
1
by: dhanashivam | last post by:
Hi All, I have a crystal report document which is opened from my asp.net 2.0 application (C# code). In the design time i fixed my date fields as MM/dd/yyyy format. but now we are going to...
2
by: kevinfbutt | last post by:
Hi All! I have an SQL Server View where my field in the view is an integer field and works well. When I link to it from Access, the field is defined as a text field in Access. Does anyone...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.