Link to home
Start Free TrialLog in
Avatar of Paul Schuler
Paul SchulerFlag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

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