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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to export Text file as Comma Delimited

Status
Not open for further replies.

Buddha1

Technical User
Feb 5, 2004
32
US
Hello,
I am trying to export a query as a text file which I have been able to do, however I am trying to export it as a comma delimited file and I can't find that option under the Macro. It lists text, excel, html, rich text and so on. Can someone help me with this????
 
How are you firing off the macro? Are you using a command button?

I would use vba to do the export and set up an export specification to create a comma delimited file.

To setup an export specification:

1) File -> Export
2) Change Save As Type to ->Text Files
3) When export dialog appears click on Advanced
4) Click on Save As
5) Enter the name for the spec

After creation of Export Specification:

Add code to a command button on click

DoCmd.TransferText acExportDelim, YourSpecName, YourQueryName,YourFileName

HTH
Mike

[noevil]
 
When I try to set up a specification I get an error box that states "Too few parameters expected"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top