Microsoft
Software
Hardware
Network
Question : Closing Excel after exporting data from Access
I have an easy bit of code that is attached to a button on a form. It populates an excel spreadsheet with data from my query. After it runs and does this, I would like for it to close the Excel spreadsheet. The user does not even have to see the spreadsheet, it could happen invisibly (but does not have to). Is there an easy way to close excel after this code runs?
Code Snippet:
1:
DoCmd.OutputTo acOutputQuery, "ErisaQ", acFormatXLS, "C:\StarrDatabase\Erisa.xls", True
Open in New Window
Select All
Answer : Closing Excel after exporting data from Access
this will create the excel file without opening excel
DoCmd.OutputTo acOutputQuery, "ErisaQ", acFormatXLS, "C:\StarrDatabase\Erisa.xl
s"
Random Solutions
split the comma seperated string in mysql
Questions about Raid 1 setup
FTPS on IIS6
Redirect mod_rewrite killed my Blog?
Execute command for each record in a mysql table using a Window's batch file
Configuring RAID in Windows 2003 Server
Auto reply for different mailbox than my own
Outlook Express issue
When converting a SQL database to unicode what is the size increase one should expect?
Connecting MS Access to SQL Server over internet