> You say you are trying to Export the file, but you are using acImportFixed??
A good point, lol...I actually copy and pasted that...I *am* exporting
and I *am* using acExportFixed.
DoCmd.TransferText acExportFixed, "cmdExport", "qryOperation", "\
\mediaagent\dmsimport\export.txt", vbNo
A mistake on my part and only muddies the water, sorry about that. I
am using the right argument in my code and get the error message
regardless.
Dirk Goldgar - 28 Feb 2007 04:46 GMT
>> You say you are trying to Export the file, but you are using
>> acImportFixed??
[quoted text clipped - 8 lines]
> am using the right argument in my code and get the error message
> regardless.
It's not obvious to me yet exactly what's wrong, but I can tell you that
you should not be using the defined constant vbNo in that statement;
you probably should be using False instead:
DoCmd.TransferText _
acExportFixed, _
"cmdExport", _
"qryOperation", _
"\\mediaagent\dmsimport\export.txt", _
False
So "cmdExport" is the name of an import/export specification that is
defined in this database? And the folder "\\mediaagent\dmsimport"
exists, on the computer where this code is running?
What is the exact error message?

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)