Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Find Record Combo    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Multiple Subforms
Monica Jones 
       
10 months ago
I got this working on one of my forms. I have two other forms that I need to filter the same. I added them as subforms on a main form and have a dropdown on the main. I made the default value of the dropdown on the subform = the dropdown on the main form. I added a me.refresh afterupdate to the main dropdown. The issue is that the subform (read test subject) I'm working with is showing #Name? on first load and even after I select from the main dropdown menu.

I know this is a timing issue, but I don't know how to fix it. Any help is appreciated, TIA.
Sami Shamma  @Reply  
             
10 months ago
#Name means you have that field bound and the database cannot find it.
Look at the design of your form and see whether that field needs to be bound. If it is only used for filtering, the odds are you don't need to have it bound.
Monica Jones OP  @Reply  
       
10 months ago
Thank you for the super quick response! Turns out when I added the default value, I didn't reference it correctly. I'm no longer getting the #Name! error message but it isn't filtering either. This is where I think the timing is coming in.
Sami Shamma  @Reply  
             
10 months ago
Okay Monica, you know the drill. Start posting some images so we can see what's going on.
Monica Jones OP  @Reply  
       
10 months ago

Monica Jones OP  @Reply  
       
10 months ago
My laptop has gremlins; there wasn't an upload button Friday. Or maybe I was just braindead from trying to figure this out. The above is what it's doing. Below is what I'm going for. I'm thinking if I can make the dropdowns on the subforms follow the main form then I can hide them and the users will only see one dropdown controlling the whole thing.
Monica Jones OP  @Reply  
       
10 months ago

Monica Jones OP  @Reply  
       
10 months ago
*HAPPY DANCE* I decided to cut out the middleman and filter straight from the parent, but it didn't like the way I was trying to reference the filter property on the subform. Parent form is ConfirmationEmailF, and subform is LIBConfirmAdjF. I tried Forms!LIBConfirmAdjF.Filter, LIBConfirmAdjF.Form!Filter, Forms!ConfirmationEmailF!LIBConfirmAdjF.Form!Filter

Turns out somewhere along the line the Name of the subform became different from the Source Object. The only thing I can think of is I mistook Name for Caption, because it had a space in it.

The final, correct answer:
    If IsNull(Me.EmailCmb) Or Me.EmailCmb = "" Then
        Me.LIBConfirmAdjF.Form.Filter = ""
        Me.LIBConfirmAdjF.Form.FilterOn = False
    Else
        Me.LIBConfirmAdjF.Form.Filter = "EmailSubject=""" & Me.EmailCmb & """"
        Me.LIBConfirmAdjF.Form.FilterOn = True
    End If
Richard Rost  @Reply  
          
10 months ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Find Record Combo.
 

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 8:12:59 PM. PLT: 1s