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!

More Help......

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
what i need is when i hit a button the database report is automaticaly pass to a Word file *.DOC

How can i do it in VBA code?

Tkx

:)
 
if you want to output your report to a word file, you could do for example like this:

Private Sub Command1_Click()
DoCmd.OutputTo acOutputReport, "MyReportName", acFormatRTF, "D:\temp\out.doc", -1
End Sub
 
Hi, Gti!

Look at thread702-123001 if you want to select output repot's file name on browser.

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top