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
why do we get invalid path or file name when executing BAT file in XP?
I can't find free drivers to my compaq presario
Lock Down TCP 25 on MS Exchange 2003
Verify this email address
Outlook 2003 autocomplete pop-down not showing contacts
SQL Syntax error due to empty table or PHP version?
SMTP Virtual Server Access Settings
I need to install multiple network printers using AD or a startup batch file.
ASP wont work in IIS 7 vista
MAke auto-increment column NOT primary key??