Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Filter in a form
Mark Wright 

5 years ago
Hi all,

I'm trying to add a filter in to a continuous Form. The form derives its data from a Query, and the Form cannot be edited by the user, but is a list of all active customers. However there is a list of names of who the customers belong to and I am trying to add a filter in the Form so the user can choose their name then instantly see which customers belong to them.

Could you point me in the right direction, as I'm not sure if I have to use VB or create a ComboBox within the form or both.

Any help would be appreciated.

Many thanks

Mark
Kevin Robertson  @Reply  
          
5 years ago
Create your ComboBox of names and enter the following code in the AfterUpdate event

    Me.Filter = "[YourID]=" & ComboBoxName
    Me.FilterOn = True

    
YourID will be a Foreign Key in your Customer Table.
Kevin Robertson  @Reply  
          
5 years ago
To avoid an error when the box is cleared:

    If Not IsNull(ComboBoxName) Then
        Me.Filter = "[YourID]=" & ComboBoxName
        Me.FilterOn = True
    Else
        Me.FilterOn = False
    End If
Mark Wright OP  @Reply  

5 years ago
Hi Kevin, thank you for this and apologies for the late response as It's been crazy in my day job!

Okay, I have done this, and the list of names are in the combo box - however when I click the dropdown box it does show the list of names but it will not let me select a name. When I click on the name nothing happens. Any assistance would be appreciated.
Kevin Robertson  @Reply  
          
5 years ago
Sounds like the Recordset is Not Updateable

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: 8/12/2026 7:21:54 AM. PLT: 0s