Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Report Listbox < On Dbl Click | Favorite Customers >
 
Report Listbox
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   8 months ago

Using the On Double Click Event. Open Record.


 S  M  L  XL  FS  Join Now

Learn how to make a listbox that's got all of the reports you need to print on a regular basis. All your users have to do is click on a report and then click on a "print" button, and voila. There's your report. Nice and easy to maintain and update, too.

Avery from Mesa, Arizona (a Gold Member) asks: Is there a way I can create a list box or a combo box that displays a list of the available reports in my database. I don't need all of them, just a handful. I'd like to make it easy for the users to pick one and click a button to print it. I also don't want to have to add buttons to a menu every time I make a new report (which is often). Help?

Members

I'll show you how to do the same thing without having to maintain a table. We'll loop through the Reports collection in VBA and use that to populate the list. I'll show you how to add a Description property attribute to a report for the display text. Fun stuff!

Silver Members and up get access to an Extended Cut of this video. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!

What Course?

This isn't covered in any of my courses! New stuff!

Links

Relational Combo Box: https://599cd.com/RelationalCombo
Intro to VBA: https://599cd.com/IntroVBA
ListBox.AddItem: https://599cd.com/ACD16

Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates

Resources

Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?

Questions?

Please feel free to post your questions or comments below or submit them via the TechHelp page.

 

MSysObjects Query Alternative Upload Images   Link 
Alex Hedley 
8 months ago
Need to double check if the Description field is included but could you not use the MSysObjects Table as an alternative?

SELECT MSysObjects.Name AS Table_Name
FROM MSysObjects Read More...
Richard Rost
8 months ago
Yep. As with anything in Access there are always multiple ways to do things. That's another method. And no, I don't think you can get to the Description property that way, so you're still going to have to loop.
Richard Rost
8 months ago
Honestly I still prefer Method 1 (with the table) that I show in the free video. I like being in control of the list with a table. You can add a custom sort order and everything.
Add a Reply
Sort Reports Upload Images   Link 
Ray White 
8 months ago
What would be the best way to make it so that the user could sort the reports in any order they want? Like if I had 30 reports and I mainly use 10 of them a lot so I want them 10 at the top of the list in which ever order I want. Read More...
Alex Hedley
8 months ago
With it being a custom sort I'd prob create another table which stores the users preferences, so they'd have a screen with the list of reports and they could tick ones as favourites, make the sort order by that, or given them a preference score and sort by that.
It's a little extra work but how else would you know.
Unless you audit which reports they open and sort by most often. Increase a counter each time? Add a row to a table, that could get big slow though.
Juan C Rivera
8 months ago
I like the list box set up Richard just put out the video.  Check it out it is good and simple to follow .  
I find most of the time not wishing to give the customer to many options as they forget 90% and just use a few 10%.  Find what few they like and they will be happy..  or you will spend a lot of time coding stuff that may never get used
Most of the time I use a dropdown with the selectcase.  SQL is the best way.  set up a form dropdown will sort the form.  then set up a report with that recodrsource, BOOM- What you see is what you get.  
just my thoughts

V/r
Juan
Add a Reply
Date Filter Upload Images   Link 
Kaibaua Airam 
8 months ago
Please can you add the option for Date Filter on Report Listbox
Richard Rost
8 months ago
You want the report you open to get it's criteria from fields on the form? Just see this: Forms!FormName Notation
Add a Reply

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

10/10/2021Copy Text from Field
10/10/2021Access for Free
10/9/2021Birthdays
10/8/2021Label Resize
10/2/2021Criticisms of Access
10/1/2021Access Developer 32
10/1/2021Groups
9/29/2021DMin
9/28/2021Track Log On
9/26/2021Sliders
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access selecting a report from a listbox, report combo box, listbox of available reports, report drop down list, AccessObject, Application.CurrentProject.AllReports, Containers, Documents, CurrentDB  PermaLink