Avatar of SteveL13
SteveL13
Flag for United States of America asked on

Command button on a report possible?

Is it possible to put a command button on a report to close the report when clicked?
Microsoft Access

Avatar of undefined
Last Comment
Dale Fye

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott McDaniel (EE MVE )

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dale Fye

I use custom shortcut menus for all of my reports.

Take a look at mod_Menus in the attached.

In the Report Open event, I call MenuReport, which builds the shortcut menu, and then assign the ShortcutMenuBar to "MyReportMenu"

This menu has options for Print, Save as PDF, Send as PDF, and Close.  The ones I use usually have other options as well, Export to Excel, and several others, but those all involve a little more code and I don't have the time to pull those into this sample db at the moment
ReportMenu.accdb
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23