Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Query Using "OutputTo" In Macro

Status
Not open for further replies.

pa2

Programmer
Apr 17, 2007
19
GB
Hi,
I have a query (complex and lengthy but perfectly OK) which I need to export as a .csv or .txt file using a macro, which I have set up. It must run from a macro so I can easily set up an auto macro to run.

When I run the macro the .csv or .txt (I have tried both) is not generated free of formatting. The .csv file is not a true comma delimited file and the .txt file loses some of the heading information as contained within the query.

Ideally a true .csv (no formatting etc) file would be wonderful or a .txt if it also was free of formatting and outputs all of the information as contained in the query.

Surely Access can output a flat file true .csv or .txt?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top