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

Output to TXT File

Status
Not open for further replies.

BradCustom

IS-IT--Management
Oct 5, 2007
296
US
I'm using Access 2007 and I've created a Macro that outputs a table to a text file. Everything works fine but the export requires user input. I was wondering if there is a way to export without the user having to answer the Export Wizard questions.

Code:
The questions that need to be answered are:
Path:       OK
Overwrite:  Yes/No
Format:     Fixed Width

Finish
Close

Perhaps this would be better handled with VBA?

Thanks for your help!
 
In VBA, use the DoCmd.TransferText method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
How can I add the DoCmd.TransferText to an exsisting Macro?

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top