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

How do you Output to ... to a workbook tab

Status
Not open for further replies.

jeep2001

Programmer
Dec 15, 2005
134
US
I have 4 queries that I output to Excel sheets, my question is how can I get each Output To into a separate workbook so all the queries can reside in 1 file.
This is my statement from access....

Dim strFileName As String

strFileName = "G:\Derek\BreachedByDay\BreachedAlerts" & ".xls"
DoCmd.OutputTo acOutputQuery, "qryGrossAlert", acFormatXLS, strFileName, True
 
First thing: Do you mean you want the queries to all go to separate Worksheets in the same Workbook?
 
If so, I know I've seen multiple threads already answered on this same subject in the past. I'd try doing a search on something like:
Multiple sheets same workbook

Or something like that, maybe try a few variations.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top