dbTalk Databases Forums  

Access 2007: importing text date

comp.databases.ms-access comp.databases.ms-access


Discuss Access 2007: importing text date in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mimi
 
Posts: n/a

Default Access 2007: importing text date - 10-15-2008 , 01:51 PM






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



Reply With Quote
  #2  
Old   
MGFoster
 
Posts: n/a

Default Re: Access 2007: importing text date - 10-15-2008 , 07:09 PM






Mimi wrote:
Quote:
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 <at> earthlink <decimal-point> net
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-----


Reply With Quote
  #3  
Old   
Mimi
 
Posts: n/a

Default Re: Access 2007: importing text date - 10-16-2008 , 04:07 PM




"MGFoster" <me (AT) privacy (DOT) com> wrote

Quote:
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




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.