Export to Excel Question
How would I export the results from an Access query to an Excel spreadsheet and at the same time open the spreadsheet to view the results by using a cmd button?
I've used this line of code to export information from a table to excel:
DoCmd.TransferSpreadsheet acExport, _
SpreadsheetTypeExcel9, "tblMain", _
"c:\bulk\Main.xls"
However, I have to manually find the excel file and open it to view the data.
|