Solved

Command button on a report possible?

Posted on 2014-01-15
2
349 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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Search for text in a .txt file 14 45
Access VBA, adding Progress Bar in code to allow execution. 7 29
Switch 5 17
Progress bar in access form 11 23
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

810 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