Results 1 to 3 of 3
  1. #1
    sinisterfrog is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    23

    Combo Box Question

    I am attempting to make a form that will serve as a data entry form for new customers as well as serve as a customer lookup form.

    So my source data is pulling directly from a Customer table (name/company/addresses/etc). I have made a combo box using the wizard to "find a record on my form based on the value I have selected" and I have made the last name the searchable field.



    It works....For completely unique last names. In the case of non-unique last names~Johnson for example~It will only populate the field with the first Johnson in the Table.

    So for example I type in johnson in the Combobox and I see a list of 3 different Johnsons lets say fred, ethel and lucy. Assuming Lucy was the first johnson added to the table, if i click on fred or ethel, lucy's data will be shown. Where am I going wrong?

    Thank you in advance,

    -Matt

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    the query for the combo box should be set to DISTINCT, if you are only using last names.
    in the query property , set UNIQUE VALUES = TRUE
    select distinct [last] from tNames

    then when user picks the lastname, filter the continuous form on that.

  3. #3
    sinisterfrog is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    23
    I believe (because I am inexperienced) I just did that and did not have success.. It turns out I forgot this was pulling from a query. When I made a quick form based on the table this issue resolved itself. Thank you for your help though.

    -Matt

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

Similar Threads

  1. Combo Box Question
    By derek7467 in forum Forms
    Replies: 1
    Last Post: 02-20-2014, 07:48 AM
  2. Replies: 4
    Last Post: 08-25-2012, 07:19 PM
  3. Combo Box question!!
    By johnjohnson in forum Forms
    Replies: 2
    Last Post: 12-10-2011, 02:41 PM
  4. Combo Box Question
    By hawkins in forum Forms
    Replies: 1
    Last Post: 06-27-2011, 01:32 AM
  5. A combo box question
    By GeorgeD in forum Forms
    Replies: 3
    Last Post: 05-05-2008, 10:53 AM

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