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

Export Access Query Output to Excel Workbook

Status
Not open for further replies.

mveera

Programmer
Nov 6, 2002
81
US
Hi,

I would to know how to Export a Access Query Result to an Excel Workbook Template.

My requirement is to create a worksheet with the results of an Access Query. For each Query Result i will have to create separate workbooks. I was able export using Access Menu. I would like to know how i can do it programmatically.

Thanks
Veera
 
Thanks.

I found out how to do it using the following code

DoCmd.TransferSpreadsheet cExport,"qryName","d:\tmp\tmp.xls"

Veera
 
Thanks.

I found out how to do it using the following code

DoCmd.TransferSpreadsheet cExport,"qryName","d:\tmp\tmp.xls"

Veera
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top