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

save query as excel spreadsheet

Status
Not open for further replies.

djam

Technical User
Nov 15, 2002
223
CA
what would be the vb code i can use on a button click to take the results of a query and save it as a excel spreadsheet in the c drive?

thanks

" ahhh computers, how they made our lives much simpler ;) "
 
Take a look at the DoCmd.TransferSpreadsheet method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
This will also work:

DoCmd.OutputTo acOutputQuery, "YourQueryName", acFormatXLS, "c:\YourExcelName.xls", True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top