Is it possible to transfer the contents of a SELECT query from an access table to an excel sheet in one shot(by programming in VBA) instead of browsing the recordset one by one. Just like an ODBC query but in a simple SQL query.
VBA example:
DoCmd.TransferSpreadsheet acExport, 8, "qrySales", "c:\export\excel\Sales.xls" Terry L. Broadbent
faq183-874 contains some tips and ideas for posting questions in these forums. Please review it if you have time.
acExport means Export
5 means the spreadsheet version
"tbl-Repair....." is the table. (Could also be a query)
"ExcelOuput" is the name of the new file
True means you want the spreadsheet to have column headings
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.