G
Guest
I have a table: Inspection_EXPORT with an export specification: RTM_export.
I want to export the table into a CSV file locally. I've written a function
in a module using Transfer.text to do this:
Public Function EXPORT_Inspections()
DoCmd.TransferText acExportFixed, "RTM_Export", "Inspection_EXPORT",
"c:\test.txt", True
End Function
I am getting this error:
Run-time error '3011':
"The Microsoft Office Access database engine could not find the object
'test#txt'. Make sure the object exists and that you spell its name and the
path name correctly.
---------
I have a few questions.
1- Why is the engine trying to make sure the future export file exists?
It's an exported file, it doesnt exist yet...
2- Why is it being referred to as 'test#txt'? Did I write the wrong syntax?
3- If I wanted a .CSV file, could I just name it test.csv- or do I need to
do something else?
Thanks for your patience and help.
I want to export the table into a CSV file locally. I've written a function
in a module using Transfer.text to do this:
Public Function EXPORT_Inspections()
DoCmd.TransferText acExportFixed, "RTM_Export", "Inspection_EXPORT",
"c:\test.txt", True
End Function
I am getting this error:
Run-time error '3011':
"The Microsoft Office Access database engine could not find the object
'test#txt'. Make sure the object exists and that you spell its name and the
path name correctly.
---------
I have a few questions.
1- Why is the engine trying to make sure the future export file exists?
It's an exported file, it doesnt exist yet...
2- Why is it being referred to as 'test#txt'? Did I write the wrong syntax?
3- If I wanted a .CSV file, could I just name it test.csv- or do I need to
do something else?
Thanks for your patience and help.