Results 1 to 2 of 2
  1. #1
    Eliza P is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Location
    Chester, WV
    Posts
    1

    Unbound Combobox search issue

    I have a small employee database (200 employees) It has phone, department and supevisor information as well as a bitmap picture of the employee. I use a form with unbound combo boxes to enable others to search by first name or last name to view the particular employee information. The combo boxes work independently.

    It works fine except when there is more than one person with the same first or last names.

    For example if two employees both have the first name Janet, I cannot get to the second employee. Typing the last name only may correct it, if there are not two people with the same last name as the second Janet. (which is a factor in our database)

    I am looking for help on how to correct this.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    You could have the two comboboxes concatenate the name parts.

    SELECT EmpID, LastName & ", " & FirstName AS EmpName FROM Employees;

    SELECT EmpID, FirstName & " " LastName AS EmpName FROM Employees;

    Other combobox properties:

    BoundColumn:1
    ColumnCount: 2
    ColumnWidths: 0";2.0"

    Users will see the names but then code could use the EmpID for search.
    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. Replies: 1
    Last Post: 06-19-2013, 12:32 AM
  2. Replies: 2
    Last Post: 04-17-2013, 02:12 PM
  3. Unbound Combobox show current month
    By burrina in forum Forms
    Replies: 1
    Last Post: 03-08-2013, 01:57 AM
  4. Unbound Combobox Filter By Date Criteria
    By burrina in forum Forms
    Replies: 8
    Last Post: 01-04-2013, 02:24 PM
  5. Unbound form requery issue
    By kparker in forum Forms
    Replies: 2
    Last Post: 06-28-2011, 04:22 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