dbTalk Databases Forums  

Creating new worksheets

comp.database.ms-access comp.database.ms-access


Discuss Creating new worksheets in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MicahB
 
Posts: n/a

Default Creating new worksheets - 11-11-2003 , 10:49 AM






I'm using a simple output query to create my initial excel
spreadsheet. My problem is that I need to now add more worksheets to
the same spreadsheet using a different query for each worksheet.

Here's what I'm using to create the initial spreadsheet:
DoCmd.OutputTo acQuery, "queryName", acFormatXLS,
"\\Location\FileName" & Format(Date - 1, "mmddyy") & ".xls", False

Reply With Quote
  #2  
Old   
onedaywhen
 
Posts: n/a

Default Re: Creating new worksheets - 11-12-2003 , 05:31 AM






Use queries e.g.

SELECT *
INTO [Excel 8.0;Database=C:\NewFile.xls].[A]
FROM A

SELECT *
INTO [Excel 8.0;Database=C:\NewFile.xls].[b]
FROM B


mdb1974 (AT) yahoo (DOT) com (MicahB) wrote in message news:<dbb719c3.0311110849.540f5110 (AT) posting (DOT) google.com>...
Quote:
I'm using a simple output query to create my initial excel
spreadsheet. My problem is that I need to now add more worksheets to
the same spreadsheet using a different query for each worksheet.

Here's what I'm using to create the initial spreadsheet:
DoCmd.OutputTo acQuery, "queryName", acFormatXLS,
"\\Location\FileName" & Format(Date - 1, "mmddyy") & ".xls", False

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.