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

Access 2007: importing text date

In Access 2007, I have successfully imported a text file with fixed width
fields. However the import did not correctly interpret a date. In the text
file the date field had no delimiter, was just MMDDYYYY. This column
appears empty in my table.

It doesn't seem like this is a hard thing to do. Any suggestions?

Marianne
Oct 15 '08 #1
2 4099
Mimi wrote:
In Access 2007, I have successfully imported a text file with fixed width
fields. However the import did not correctly interpret a date. In the text
file the date field had no delimiter, was just MMDDYYYY. This column
appears empty in my table.

It doesn't seem like this is a hard thing to do. Any suggestions?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you import the text file use the Advanced button on the import
dialog box. This will display the import specification dialog box.
There are boxes that contain the date month/day/year delimiters - delete
anything in those boxes. Check the CheckBox for "Leading Zeros." This
will tell Access to read dates like 1/1/08 as 010108. Check the
CheckBox for "4-digit years." In the Fields specifications (in the
lower section of the specification dialog box) make sure the date field
has a Date/Time data type.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBSPaGMoechKqOuFEgEQJTigCfaw3UzAphQ3VieQR4hbNSN/VbNyEAoO5b
t1jL2sMNwb+7B/pQofkvrKVK
=rXSI
-----END PGP SIGNATURE-----
Oct 16 '08 #2

"MGFoster" <me@privacy.comwrote in message
news:W8******************************@earthlink.co m...
Mimi wrote:
>In Access 2007, I have successfully imported a text file with fixed width
fields. However the import did not correctly interpret a date. In the
text file the date field had no delimiter, was just MMDDYYYY. This
column appears empty in my table.

It doesn't seem like this is a hard thing to do. Any suggestions?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When you import the text file use the Advanced button on the import
dialog box. This will display the import specification dialog box.
There are boxes that contain the date month/day/year delimiters - delete
anything in those boxes. Check the CheckBox for "Leading Zeros." This
will tell Access to read dates like 1/1/08 as 010108. Check the
CheckBox for "4-digit years." In the Fields specifications (in the
lower section of the specification dialog box) make sure the date field
has a Date/Time data type.
--
Thanks for your response.

But it didn't seem to work. I don't quite understand your last sentence. In
the Import specification box, the Fields specifications don't have any type
specification, just a field name, start column and width. (and a check box.)
There is a blank field to the left and two blank fields (columns) to the
right. The corresponding field in the recipient table is Date/Time.

Thanks again for your help.

Marianne
Oct 16 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mark | last post by:
In Access 2000 and 2002, I have created an import specification to import the fixed-width recordset below into an existing table. I am having strange problems with the import of the date and time...
9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
2
by: denisel | last post by:
Hi, We will be conducting surveys through SurveyMonkey online and will be importing the answers by tab delimited or comma delimited file into access. I was wondering if there is specific way to...
6
by: venmore | last post by:
Hi Can someone please point in the right direction. I have an XML file that gets updated every 4 hours on a web server. I can check the XML modification time in ASP and compare to the databse....
8
by: Trev | last post by:
Hi Can anyone point me in the right direction here, I would like to open a table in access 2003 by date. I have an asp web page which needs to read data from a table with each days today's date...
8
by: saladinator | last post by:
I have created an Excel spreadsheet that has a lot of data. What I want to do is import the spreedsheet to Access and create a form so that I can print each row per page in a proffessional manner....
1
by: BulbFresh | last post by:
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...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.