Solved

Command button on a report possible?

Posted on 2014-01-15
2
352 Views
Last Modified: 2014-01-15
Is it possible to put a command button on a report to close the report when clicked?
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39782309
No, but if you're using 2010 you can embed a Report in a Form, and you could put a button in that Form. Or include a menubar or Ribbon (if you're using 2007/2010) that shows when the report opens, and add the Close functionality to that.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 39782391
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question