Nov 9, 2004 #1 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 "
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 "
Nov 9, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Nov 9, 2004 #3 FancyPrairie Programmer Oct 16, 2001 2,917 US This will also work: DoCmd.OutputTo acOutputQuery, "YourQueryName", acFormatXLS, "c:\YourExcelName.xls", True Upvote 0 Downvote
This will also work: DoCmd.OutputTo acOutputQuery, "YourQueryName", acFormatXLS, "c:\YourExcelName.xls", True