Results 1 to 4 of 4
  1. #1
    millerprm is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    6

    Filter Former Employees out of Combo Box List


    I have a combo box based on an employee table. I would like a former employee's name to be removed as a choice combo box list, but their name kept in the employee table (and noted as an former employee) and other records related to them. Any ideas are greatly appreciated.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    You could add a True/False field to your table of employees and perhaps name it CurrentEmployee. This would enable you to determine which employees are current and which are not. You could then use this field for the criteria in the query of your combo box
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Basically, you base the combo box on a query, rather than a table, and write the query to exclude anyone you don't want in that particular combo box.

    As Bob said, the query could use a yes/no field for CurrentEmployee, or a non-null termination date, or whatever other way you might identify the active employees from the inactive ones.

  4. #4
    millerprm is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2014
    Posts
    6
    Quote Originally Posted by Dal Jeanis View Post
    Basically, you base the combo box on a query, rather than a table, and write the query to exclude anyone you don't want in that particular combo box.

    As Bob said, the query could use a yes/no field for CurrentEmployee, or a non-null termination date, or whatever other way you might identify the active employees from the inactive ones.
    Thanks for the reply. I based the combobox on a query. The issue I'm having is after I check the former employee box, the record with the name in it is no longer visible in the subform (the record is still in the table). the count says 1 of 4, but there are only 3 names showing. thanks for your time!
    Attached Files Attached Files

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 13
    Last Post: 10-08-2014, 12:21 PM
  2. Replies: 1
    Last Post: 09-01-2013, 09:44 PM
  3. Replies: 1
    Last Post: 09-24-2012, 07:09 PM
  4. Filter List box from combo box selection
    By thart21 in forum Forms
    Replies: 3
    Last Post: 11-09-2011, 12:00 PM
  5. Replies: 1
    Last Post: 11-23-2010, 01:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums