Your syntax is incorrect for the CDate function. Try
CDate(Format(DATUM,0000\-00\-00))
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
"catharinusvan der werf"
<
[email protected]>
wrote in message
Hello to you all,
I tried the statement in my query to insert a text file in an accces
database, but it failed. Don't know why. Please help:
The statement:
Call conConnection.Execute("INSERT INTO [TABELB] (DATUM) SELECT
CDATE(DATUM,0000\-00\-00) AS DATUM FROM [text;HDR=NO;DATABASE=" &
App.Path &
"\telebank\gtz].[table4.asc]")
catharinusvan der werf
(e-mail address removed)
:
Yes. When you're importing, click on the Advanced button in the bottom
left-hand corner of the wizard. Set the field's Data Type to
Date/Time,
set
theDateOrder to YMD, set theDateDelimiter to nothing and check the
Four
Digit Year checkbox.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
We have dates that are in this format:
20080513
This is thedatefor 5/13/2008
If I import data from a text file that has this format, how can I
convert
it to a regulardatefield before it goes into my database?
Thanks,
Jasper- Tekst uit oorspronkelijk bericht niet weergeven -