Could you please help? I am wanting to automatically export a query as a Tab Delimited Txt file.
But when I write a macro to export the query it exports it in the wrong format.
For example my following code
DoCmd.OutputTo cQuery, "Q_PostSector", "MS-DOSText(*.txt)", "\\cmq0059\\Customer Relationship Management\Customer\Data\Post Sector.txt", False, "", 0 exports the file in the following format
---------------------------------------------------------------
salesoffice | reparea | customerno |
---------------------------------------------------------------
2 | 3 | 12 |
----------------------------------------------------------------
But when I exported file manually through the wizard I get following format
"URN" "customer" "name" "rank"
"10/05" "05" " Ltd " "0"
Kinds Regards
[/code]
But when I write a macro to export the query it exports it in the wrong format.
For example my following code
DoCmd.OutputTo cQuery, "Q_PostSector", "MS-DOSText(*.txt)", "\\cmq0059\\Customer Relationship Management\Customer\Data\Post Sector.txt", False, "", 0 exports the file in the following format
---------------------------------------------------------------
salesoffice | reparea | customerno |
---------------------------------------------------------------
2 | 3 | 12 |
----------------------------------------------------------------
But when I exported file manually through the wizard I get following format
"URN" "customer" "name" "rank"
"10/05" "05" " Ltd " "0"
Kinds Regards
[/code]