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

qeury append to one file

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
Code:
Dim strDir As String
strDir = "D:\2008\MailReportTemp"

DoCmd.SetWarnings False
DoCmd.OutputTo acOutputQuery, "Query1Total", acFormatRTF, strDir & "\" & "MailBody.doc"
DoCmd.OutputTo acOutputQuery, "Query1Detail", acFormatRTF, strDir & "\" & "MailBody.doc"

I can not append two queries in one document ?
I have few queries that I need to paste it in one document.
In this case he produce two reports.
I thought I could use write to file, but then I lose the format of my query. How can I easily solve this ?
 
Use a report with subreports and export it.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
ok, thats a possible solution but found also something like
"Merge multiple Word Documents using VBA".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top