I have a cross tab query that I would export by code to a spreadsheet replacing the existing spreadsheet each time I use the command button. Then have the spreadsheet show on the screen.
The XLS file will be an Excel 97 spreadsheet with FieldName headings. Change your spreadsheet path to the file you are exporting to. Change the table or query name of "tblMyTableName" to your recordsource.
-Josh
------------------
-JPeters Got a helpful tip for Access Users? Check out and contribute to 'How to Keep Your Databases from becoming Overwhelming!'
thread181-293590
jpeters@guidemail.com
------------------
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.