A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IMPORT date from text file



 
 
Thread Tools Display Modes
  #1  
Old February 22nd, 2007, 11:39 PM posted to microsoft.public.access.queries
Lucio
external usenet poster
 
Posts: 7
Default IMPORT date from text file

I have a text file that contains a field of the type 'dd-mmm-yy'

When I import, it notices it is a date/time field

It does not load. It returns a conversion error.

also another question.

suppose it loaded. how do i write SQL of the type

created '01-jan-06' and created '01-jul-06'?
  #2  
Old February 23rd, 2007, 03:04 PM posted to microsoft.public.access.queries
Dale Fye
external usenet poster
 
Posts: 2,651
Default IMPORT date from text file

What is the data type of the field in your database?

How are you importing the text file? Are you using an import specification?
If so, have you explicitly declared that the field is a date field? What
does a row of the input data look like in the text file? Are the fields of
fixed length, or delimited? Are the dates wrapped in quotes or not.

I created an mdb and put a date field in it, then created a text file with
dates in the format you indicated, and they imported properly when I used an
import specification but gave me an error when I tried to do it without using
an import specification.

HTH
Dale
--
Email address is not valid.
Please reply to newsgroup only.


"Lucio" wrote:

I have a text file that contains a field of the type 'dd-mmm-yy'

When I import, it notices it is a date/time field

It does not load. It returns a conversion error.

also another question.

suppose it loaded. how do i write SQL of the type

created '01-jan-06' and created '01-jul-06'?

 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.