Computer Learning Zone CLZ Access Excel Word Windows

All things good to know are difficult to learn.

-Greek Proverb
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Filter Report Question
Jo Ann Spidle 

2 years ago
First of all, thank you for the many videos that you have posted. They have been very helpful. My question is related to the following video:
Video Reference: "How to Filter a Report Based on the Filter Set in a Form in Microsoft Access"

In the'video above, the vba code is based on a single form and'I was successful when duplicating the vba code in my own database. However, I now want to take it one step further and filter a report based on the filter set of a "subform within a parent form."
Examples:Parent form: frmCustomerSubform:
sfrmCustomerOrders
Current vba code:Me.Filter = Forms!sfrmCustomerOrders.Filter

How do I revise the vba code to include the'parent form (frmCustomer)?'I have tried numerous methods and nothing works!
Adam Schwanz  @Reply  
           
2 years ago
Just need different syntax to reach the subform. Value From Subform
Jo Ann Spidle OP  @Reply  

2 years ago
Adam, thank you for your quick response.

I watched the video you referenced and tried to apply the'syntax,'but unfortunately it did not work to open a report. I am trying to reproduce similar results as shown in the video "How to Filter a Report Based on the Filter Set in a Form in Microsoft Access" except that I want to put my form inside another form. I think that I need to revise the syntax to reference both the parent and subform.'The report button runs a list of customer orders and is currently on the subform.

This syntax does not work for my situation: Forms!ParentFormName!SubFormName.Form!FieldName

This is my current syntax, which only works if my subform is open:
Me.Filter = Forms!sfrmCustomerOrders.Filter
Me.Filter = Forms!sfrmCustomerOrders.FilterOn


I want to put the subform  [sfrmCustomerOrders] inside the parent form [frmCustomer] and run a customer orders report based on option button filters. Could you give an example of how to put [frmCustomer] in the following syntax?

Me.Filter = Forms!sfrmCustomerOrders.Filter''

Thank you!
Adam Schwanz  @Reply  
           
2 years ago
So just to clarify, what are you trying to do. I'm getting confused by the wording.

You have a field like "Customer" for instance in your subform, you pick John Smith and want to open a report for only John Smith kind of thing?

Where is the button that is opening the report, is it on the parent form, or the subform? Or a different form entirely?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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/1/2026 9:49:37 PM. PLT: 0s