How are you calling that SQL statement? What's the code around it?
--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no e-mails, please!)
The query doesn't insert any records in the ascces-database..
There is no error-message.
On 3 jun, 13:01, "Douglas J. Steele"
"doesn't work" doesn't say much.
Do you get an error? If so, what's the error. If you don't get an
error,
what happens, and what do you feel should be happening instead?
I keep having problems to insert the correct records. I want to
insrt
records
dated after for example 20-12-2007,. I tried to use the next
statement, but that doesn't work:
"INSERT INTO [TABELB] (PERIODE,Datum) SELECT 0 as
periode,CDATE(FORMAT(DATUM,'0000\-00\-00')) as datum) FROM
[text;HDR=NO;DATABASE=" & App.Path &
"\telebank\Postbank].[table4.asc]
WHERE DATUM between #" & Format(cpDatumVanaf, "mm/dd/yyyy") & "#
and
#" & Format(cpTotDatum, "mm/dd/yyyy") & "#")- Tekst uit
oorspronkelijk
bericht niet weergeven -- Tekst uit oorspronkelijk bericht niet
weergeven -
- Tekst uit oorspronkelijk bericht weergeven -
Sorry Doug,
I have been a few days sick.
Yes, I am calling it.
The cpdatumvanaf: 1/1/2002
the cptotDatum: 21/12/2006
call Conconnection.execute("INSERT INTO [TABELB] (PERIODE,Datum)
SELECT 0 as
periode,CDATE(FORMAT(DATUM,'0000\-00\-00')) as datum) FROM
[text;HDR=NO;DATABASE=" & App.Path & "\telebank\Postbank].
[table4.asc]
WHERE DATUM between #" & Format(cpDatumVanaf, "mm/dd/yyyy") & "# and
#" & Format(cpTotDatum, "mm/dd/yyyy") & "#") )