Access Export File Transfer - Help Required

Joined
Sep 6, 2011
Messages
1
Reaction score
0
Hi

I am trying to export a file from access and I have given this command
DoCmd.TransferText acExportFixed, , "Orders", "C:\MyFiles\Export\cc.txt", True

and I tried all the possibilities. The command executes successfully but, I did not find the file cc.txt - I tested through query and my table has records. My only problem is that it is not writing the file into the folder or anywhere else.

Any help is appreciated and my advance thanks

Thanks,
Sankara
 
Joined
Aug 3, 2012
Messages
3
Reaction score
0
For acExportFixed you need an ini file or a specification file: "For a fixed-width text file, you must either specify an argument [specification file name] or use a schema.ini file...". That is from VBA help.

You likely have Warnings off, or you would get error number 2511 from Access indicating the need for a spec file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top