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

Output form in datasheet view to excel workbook

Status
Not open for further replies.

fishtek

Technical User
Aug 21, 2002
56
US
I have created a user interface that display search results on a form in the datasheet view. I am trying to output this form to an excel workbook with multiple worksheets using
DoCmd.OutputTo acOutputForm, "frmBCTable", acFormatXLS, "S:\MikeW_DB\TransferXL.xls"

The form outputs fine but replaces all worksheets in the workbook with a single sheet with the output data. Is there a way to output to a workbook and still preserve all other worksheets. I am using Office 2003.

Thanks for any help.
 
Have a look at the TransferSpreadsheet method

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks for responding PH. I was looking at the TransferSpreadsheet method as well but do not see how it works with a form , only tables and select queries. Can you elaborate on how the method may work using a form in datasheet view. Thanks again.
 
Transfer the underlaying query.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top