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

Print to txt file

Status
Not open for further replies.

sarahjane28

IS-IT--Management
Oct 23, 2002
14
0
0
US
Does anybody know the VB code to print a report to a txt file?

Any help would be appreciated : )
Thanks,
Sarah
 
I don't think you can print a report directly to a text file. You can, however, print data within a report to text.


[yinyang]
 
Doyou know the code to print the data to a txt file?

Thanks,
Sarah
 
Try this:

DoCmd.OutputTo acOutputReport, "MyReport", acFormatTXT

You could put this in a function or bound to a command button 'on click' event.

Hope all goes well


[yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top