Starchildren3317
Registered User.
- Local time
- Today, 17:59
- Joined
- Nov 30, 2010
- Messages
- 11
Good Morning community,
I have a couple of questions about using Excel 2010 with Access 2010. I have an application that I have written in access with a sql server 2008 back end.
My first question has to do with exporting an access table into excel.
I can do this with docmd.transferspreadsheet, however, it appears that this command requires an exact name and path of the excel sheet. What I would like to do is export from my access table to excel but have the save as dialog box pop up so that a user can choose where to save the file and what to name the file.
Anyone know how I can do this in Access 2010?
My second question is similiar to the first.
When I export to an excel 2010 spreadsheet and then try to export again to the same sheet, it doesnt seem to write over what was previously there - rather it isn't exporting at all if there was all ready data in the sheet.
Any ideas what I can do in Access 2010? I have a feeling it has to do with the security on the excel sheet that is created when doing a transfererspreadsheet.
Here is the code snip that I use for exporting to excel:
Thanks in advance for the help!
I have a couple of questions about using Excel 2010 with Access 2010. I have an application that I have written in access with a sql server 2008 back end.
My first question has to do with exporting an access table into excel.
I can do this with docmd.transferspreadsheet, however, it appears that this command requires an exact name and path of the excel sheet. What I would like to do is export from my access table to excel but have the save as dialog box pop up so that a user can choose where to save the file and what to name the file.
Anyone know how I can do this in Access 2010?
My second question is similiar to the first.
When I export to an excel 2010 spreadsheet and then try to export again to the same sheet, it doesnt seem to write over what was previously there - rather it isn't exporting at all if there was all ready data in the sheet.
Any ideas what I can do in Access 2010? I have a feeling it has to do with the security on the excel sheet that is created when doing a transfererspreadsheet.
Here is the code snip that I use for exporting to excel:
Code:
DoCmd.TransferSpreadsheet acExport, asSpreadsheetTypeExcel12Xml, LoadTableName, xlFile, True