Results 1 to 3 of 3
  1. #1
    samtitus is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2017
    Posts
    5

    Multiple Combo Boxes extracting data from same field- Is this possible?

    I have 2 tables:
    Tbl1 - Employee details
    Tbl2 - Employee qualifications [an employee can have more than 1 qualification assigned to his ID no]

    I need to generate a query/report that will list EMPLOYEES who has ALL selected qualifications. Is this possible and if yes how do I go about it.
    nb: a
    eg
    Form to list the qualification
    ComboBox 1 - Qualification1 - info extracted from quali
    ComboBox 2- Qualification 2 - info extracted from quali
    ComboBox 3 - Qualification 3 - info extracted from quali


    RESULT
    Employee 1


    Employee 2
    Employee 3

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    I have a convoluted way below (anyone got better?)

    0. Put Quals needed in a 'picked' table
    1 show all item permutations, clients vs Quals
    2. outer join 'All List' to client list to show whats missing (NotValids)
    3. ANSWER!: show the opposite of step 2

    Click image for larger version. 

Name:	sql AND criteria w lbls.jpg 
Views:	10 
Size:	118.1 KB 
ID:	30375

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Only 3 qualification factors?

    Do you have a table of standard qualifications?

    tPickedQuals could be a dynamic parameterized query using IN operator criteria.

    SELECT * FROM Qualifications WHERE ID IN(Forms!formname!combo1, Forms!formname!combo2, Forms!formname!combo3);

    I've never used dynamic parameterized queries but might make an exception for this requirement.

    However, if you want to allow any number of qualifications, use ranman's suggestion for saving records to a temporary table (table is permanent, records are temporary). Only one combobox needed. Or use multi-select listbox and VBA code loops through listbox selections and saves records.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. extracting data for combo box
    By The in forum Forms
    Replies: 2
    Last Post: 11-10-2014, 10:28 AM
  2. Replies: 4
    Last Post: 01-04-2013, 04:03 PM
  3. Replies: 5
    Last Post: 07-26-2012, 02:30 PM
  4. extracting data from field
    By focosi in forum Queries
    Replies: 6
    Last Post: 02-11-2012, 03:12 AM
  5. Replies: 3
    Last Post: 03-05-2011, 12:46 PM

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