Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
How to Filter Multiple Reports
Alexis Cao 
    
4 years ago
Hello,
Hope everyone goes well. in the recently, i met a problem of how to filter multiple invoice with one customer by using the VBA code.
i know how to select the specific invoice with Form with VBA code ( where condition), also know to make a query with cricia with Forms!....; but i don't know to how to select a series invoice report with one customer, is it possible?
Alex Hedley  @Reply  
           
4 years ago
What Field are you filtering on?
Alexis Cao OP  @Reply  
    
4 years ago
filter customer, you know, one customer maybe have more than one invoices or orders, i want to filter one customers with a botton, can show all invoice report with this customer.
Alex Hedley  @Reply  
           
4 years ago
So do you have a CustomerID in your InvoiceT?
Alexis Cao OP  @Reply  
    
4 years ago
Yeah, I used the docmd.open query and at the condition point used the customerId, it doesn''t work
Alex Hedley  @Reply  
           
4 years ago
Can you write a query instead, hard code a CustomerID you know had multiple records.
Alexis Cao OP  @Reply  
    
4 years ago
DoCmd.OpenReport OrderR, acViewPreview, , "CustomerID=" & CustomerID
Alexis Cao OP  @Reply  
    
4 years ago

Alexis Cao OP  @Reply  
    
4 years ago

Alexis Cao OP  @Reply  
    
4 years ago
it appears problem as the screenshot, i also think my code is not right, becasue there are three invoices at the "alexis cao" customers
Alexis Cao OP  @Reply  
    
4 years ago

Alexis Cao OP  @Reply  
    
4 years ago
i know it can be worked by Forms!CustomerF!CustomerID in the query, and then DoCmd.OpenReport OrderR, acViewPreview. but how it should write, only by VBA code, my friend
Alexis Cao OP  @Reply  
    
4 years ago
Is it possible only by VBA code?
Kevin Robertson  @Reply  
          
4 years ago
The name of your report should be in quotes.

DoCmd.OpenReport "OrderR", acViewPreview, , "CustomerID=" & CustomerID
Alexis Cao OP  @Reply  
    
4 years ago
it worked, thanks Kevin     0.0
Alexis Cao OP  @Reply  
    
4 years ago
By the way, according to this question, Mr.Richard has a open a specific report used a ''me.filter'', does the website has a more explaining video about that? I have the ''me.filter'' is more powerful, but the lessons two less about it.
Alex Hedley  @Reply  
           
4 years ago
Run-time error '2497':
The action or method requires a Report Name argument.

What did you think this error meant Alexis?
Alexis Cao OP  @Reply  
    
4 years ago
I ignored it, my mistake. Alex
Alexis Cao OP  @Reply  
    
4 years ago
My attention didn''t put the run time error

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
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
PCResale.NET
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
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/7/2026 1:17:01 PM. PLT: 0s