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 
filter SN select List
Mark Pierce 
     
5 years ago
I have a form with a subform, the user creates a parts trace list by selecting a pipe size. I have the pipe size in a dropdown field on the form, in the subform is where the person puts in a serial number given to them by a field worker. That serial number ties to a Part number and pipe size. I am trying to make only the serial numbers/part numbers that match the selected pipe size available in the subform list and if they enter a SN that does not relate to that pipe size they will get the message that the part number does not exist in the list.

I used a query to do this and it worked when I pre-filtered the query to match the pipe size. How can I make the query list update when a pipe size on the parent form is changed and before a SN is selected on the subform?
Scott Axton  @Reply  
        
5 years ago
Check out the video Value From a Form.

Instead of a state you could put in your s/n.

Also, if the s/n doesn't change much and it is in your table you could use a combo box search to filter your query.  I don't have time at the moment but will look later to find you the video if no one else chimes in.
Adam Schwanz  @Reply  
           
5 years ago
In the after-update event of your combo box that you select the pipesize. You should be able to set the record source using a SQL statement to filter only options for that size.

Something like this depending on if your sizes are numbers or strings.
Forms!FormName!SubformName.Form.RecordSource = "Select * From TableName Where Pipesize =""" & ComboName & """"
Forms!FormName!SubformName.Form.Requery

Then you could also just do an if/then DLOOKUP on the update event of your subform to check if the serialnumber is available to that pipesize and messagebox/undo if it's not.
Scott Axton  @Reply  
        
5 years ago

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/2/2026 8:53:26 AM. PLT: 1s