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

One Button Export of Query to Fixed Length Text File

Status
Not open for further replies.

gbs01

MIS
Jun 2, 2003
73
US
I have my qrySwitchDataExportToText ready to go. I can run the query, then choose File/Export/TextFile/ExportAll/ and choose my export spec called QrySwithDataExportToText and I get my text file sent to my desktop. This works great! , But I'm not having any luck adding it to my form buttons OnClick event.

Here's what I've got :
----------------------
DoCmd.TransferText acExportFixed, "QrySwitchDataExportToText Export Specification", qrySwitchDataExportToText, "C:\Test.txt"' False, ""

Thanks in advance for your help!
jalexander
 
Probably a typo, but there's an apostrophe where a comma should be:

[tt]DoCmd.TransferText acExportFixed, "QrySwitchDataExportToText Export Specification", qrySwitchDataExportToText, "C:\Test.txt"[highlight],[/highlight] False[/tt]


VBSlammer
redinvader3walking.gif

"You just have to know which screws to turn." - Professor Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top