T
thrashin via AccessMonster.com
Hello. I have seen this topic covered here but it was two years ago. I
built a database in Access 2003. When the user clicks a command button, the
click event procedure runs/exports a table data to a csv via the acdelim
method. DoCmd.TransferText, acDelim, etc etc
When the file comes out onto my hard drive, I open it with Notepad. I see
quotes surrounding fields that have text in them. I want to remove the
quotes entirely from the csv output file. I currently can do this with
making a report first of the table data that I want to see (no page header no
page footer) than
DoCmd.OutputTo, acReport, (I forgot what I put after this) but, there is a
lot of space around the entries so then, I thought I would play with the
field widths of the report and put , label controls in between the fields to
make the TXT file look like a csv. That seems like a lot of work.
Isn't there a more preferred method to remove the quotes from a csv file with
a global find all " and strip all ". Would a Trim or Left, Mid, Right do the
trick? I just am forgetting the syntax.
Anotherwords, I could run the export as is since it works although I get
quotes in the output. But, I could programmatically with code open the file
on my hard drive and remove the quotes?
Sorry for the long windedness but, I have been scratching my head for three
days on this one?
Thank you
built a database in Access 2003. When the user clicks a command button, the
click event procedure runs/exports a table data to a csv via the acdelim
method. DoCmd.TransferText, acDelim, etc etc
When the file comes out onto my hard drive, I open it with Notepad. I see
quotes surrounding fields that have text in them. I want to remove the
quotes entirely from the csv output file. I currently can do this with
making a report first of the table data that I want to see (no page header no
page footer) than
DoCmd.OutputTo, acReport, (I forgot what I put after this) but, there is a
lot of space around the entries so then, I thought I would play with the
field widths of the report and put , label controls in between the fields to
make the TXT file look like a csv. That seems like a lot of work.
Isn't there a more preferred method to remove the quotes from a csv file with
a global find all " and strip all ". Would a Trim or Left, Mid, Right do the
trick? I just am forgetting the syntax.
Anotherwords, I could run the export as is since it works although I get
quotes in the output. But, I could programmatically with code open the file
on my hard drive and remove the quotes?
Sorry for the long windedness but, I have been scratching my head for three
days on this one?
Thank you