G
Guest
I've just created my 1st access database. I have several integer fields that
need to maintain leading zeros when exported to a CSV text file. For
example: I have created these fields as integers with a format of "00000000".
When I look in the Access tables, I will see a value of "00002745" which is
exactly what I need. The problem is that I cannot get them to export to a
CSV text file with the leading zeros. I've tried the export wizard, but I
cannot get that to work. I'm trying to use a "schema.ini" file, but I cannot
get the following line of code to work.
DoCmd.TransferText acExportDelim, "c:\schema.ini", "MyQuery_qry",
"c:\Test.txt"
The error I get is... "The text file specification 'c:schema.ini' does not
exist". It's seems like it's having a problem with the back slash because it
never comes back in the error message. If I omit the specification
parameter, I get the same error on the text file. any ideas??? Is there an
easier approach to this issue?
need to maintain leading zeros when exported to a CSV text file. For
example: I have created these fields as integers with a format of "00000000".
When I look in the Access tables, I will see a value of "00002745" which is
exactly what I need. The problem is that I cannot get them to export to a
CSV text file with the leading zeros. I've tried the export wizard, but I
cannot get that to work. I'm trying to use a "schema.ini" file, but I cannot
get the following line of code to work.
DoCmd.TransferText acExportDelim, "c:\schema.ini", "MyQuery_qry",
"c:\Test.txt"
The error I get is... "The text file specification 'c:schema.ini' does not
exist". It's seems like it's having a problem with the back slash because it
never comes back in the error message. If I omit the specification
parameter, I get the same error on the text file. any ideas??? Is there an
easier approach to this issue?