Another idea.
I noticed that you actually posted:
DoCmd.TransferText acExportDelim, , "TabVoorraad",
"C:\svb\export\voorraad.txt", True
DoCmd.TransferText acImportDelim, , "TempTabImportVoorraad",
"C:\svb\import\voorraad.txt", True
You are not specifying an import specification at all in your code.
I've added Import Specification Name in the code to show you where it
goes:
DoCmd.TransferText acImportDelim, "Import Specification Name",
"TabVoorraad",
"C:\svb\export\voorraad.txt", True
"Import (oe Export) Specification Name" represent the specification
that you
save through the Import/E Wizard.
If not specified ACCESS uses "default" settings for importing text
(which probably overrides the "schema.ini"), which may cause those
errors. Try Writing the correct specification, and your problems should
go away (I hope).
-Tom
Arno R ha scritto:
[color=blue]
> Hi Tom,
>
> I don't understand how a file like schema.ini would make any difference
> but I am willing to try.
>
> So I copied the schema.ini to the same directory as the file
> voorraad.txt
> It makes no difference (as I expected...)
> 3274 External table isn't in the expected format
>
> Thanks
> Arno R
> (answering this one from my google-account)
>
>
tommaso.gastaldi@uniroma1.it schreef:
>[color=green]
> > For problem 1.
> >
> > Try placing this ini file:
> >
> >
http://cam70.sta.uniroma1.it/Technic...rno/schema.ini
> >
> > in the same directory as voorraad.txt, and run the import. Let's see
> > what happens...
> >
> > -tom[/color][/color]