vba - Export CSV file from Access without double quotes -
I am trying to export the last 2 table as a CSV file from Access 2010. The quotation mark is generated in the CSV file. How do I remove quotes from CSV file?
I tried to use the import export text macro, the VBA code for the macro looks below:
function output_to_com_maka () Getout on output_to_ csv_macro_Err DoCmd.OpenQuery "ABC ", ACV, Normal, Acidate DoCMD. OpenTable "Final 2", ACV, Normal, ACIDD, DOCMD. Transfer Text ACXportDelim, "", "Final 2", "C: \ Users \ Output File CSV", True, "" DoCmd.Close acTable, "Final2" Output_to_csv_macro_Exit: Exit Function Output_to_csv_macro_Err: MsgBox Error $ Resume Output_to_csv_macro_Exit End DoCmd.TransferText will always put quotation marks in place without an export specification. itemprop = "text"
If you want to do without it, you must first set up an export specification, then reference that specification in your code.
Comments
Post a Comment