I'm trying to export data to a csv file from access. It works great, so long as I don't specify an export specification in the vb command.
But the reason I need to use an export specification, is that otherwise, Access will use double-quotes as a text qualifier, and I need there to be no text qualifier.
So I make an export spec, and it runs fine, output looks good, but when I try to use it with the docmd.transfertext acexportdelim command, Access throws a "3011" error.
"The microsoft access database engine could not find the object 'hoursexport.csv". The same command works fine if I simply delete the reference to the export spec, which is why I think the issue is some kind of bug in Access.
DoCmd.TransferText acExportDelim, "hoursexport_spec", "HoursExport_ToFile", "C:\Users\richinsaa\desktop\hoursexport.csv"
I'm about to give up and do this with a batch command or something. :banghead:
But I figured I'd give this forum a whirl, in case any of you have any ideas. I've googled this issue and see it's a common problem, but I haven't found any solutions that pertain to me.
But the reason I need to use an export specification, is that otherwise, Access will use double-quotes as a text qualifier, and I need there to be no text qualifier.
So I make an export spec, and it runs fine, output looks good, but when I try to use it with the docmd.transfertext acexportdelim command, Access throws a "3011" error.
"The microsoft access database engine could not find the object 'hoursexport.csv". The same command works fine if I simply delete the reference to the export spec, which is why I think the issue is some kind of bug in Access.
DoCmd.TransferText acExportDelim, "hoursexport_spec", "HoursExport_ToFile", "C:\Users\richinsaa\desktop\hoursexport.csv"
I'm about to give up and do this with a batch command or something. :banghead:
But I figured I'd give this forum a whirl, in case any of you have any ideas. I've googled this issue and see it's a common problem, but I haven't found any solutions that pertain to me.