Paul Schuler
asked on
MS Access Open Query Results in Excel Spreadsheet
Hello,
I have a command button on a MS Access form. I want the click event to run an SQL query and show the results in an excel spreadsheet. I want the user to have the option of saving the spreadsheet or just closing the spreadsheet out. Is there a way to do this every method I've tried prompts you to save the spreadsheet first to a file location. Example:
DoCmd.OutputTo objecttype:=acOutputQuery, objectname:="Parent and Child Benefit Rules", outputformat:=acFormatXLS
Thanks
I have a command button on a MS Access form. I want the click event to run an SQL query and show the results in an excel spreadsheet. I want the user to have the option of saving the spreadsheet or just closing the spreadsheet out. Is there a way to do this every method I've tried prompts you to save the spreadsheet first to a file location. Example:
DoCmd.OutputTo objecttype:=acOutputQuery,
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have recommended this question be closed as follows:
Split:
-- Dale Fye (https:#a42432816)
-- PatHartman (https:#a42432818)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
MacroShadow
Experts-Exchange Cleanup Volunteer