Results 1 to 15 of 15
  1. #1
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34

    combo box

    Created a new combo box (unbound) with 3 columns "ponumbe/productid/quantity", it autofills other fields on selection.
    There are duplicate entries in combo box eg: same ponumber and different productid
    PO Number Product id
    45000123 10001
    45000123 10002



    combo box displays ponumber in ascending order, system always select the first ponumber, not able to select the 2nd ponumber with productid 10002

    TIA

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    the property of the combobox must be set to bind to the unique ID, rather than PO Number which is not unique

  3. #3
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    Im using combo box to select different product from the database, same product has different PO Number and vice versa.
    So I cant bind it to unique id.
    Any other workaround solution

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    yes you can bind it to the unique ID ... that bind should not cause any issue

  5. #5
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    I would like to type in the product number in the combo box for selection. If I bind to unique id for selection in my case it is ID (autonumber), i wont be able to type in and search the product from the list.
    There are products with same product number but different PO Number/Invoice number etc.

  6. #6
    Ternick is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2013
    Posts
    25
    If you bind it to the ID number you can still have it list by PO/product. the ID is in the combo box, just not visible so instead of setting it to match from col 1 or 2 use col 0. I have to do this alot myself as I can have the same PO with different Service providers or Employees with the same first name

  7. #7
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    Tried creating a combo box with the unique id (ID), now I can select any records.
    But if the list has 100 products and user knows only the product number, he has to scroll down and look for the match, cant type in the code and search.
    combo box accepts ID number only, is that right?

  8. #8
    Ternick is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2013
    Posts
    25
    Set the combo box so the columns are (0,x,x) where the x is how big you want that section to be. This will hide the id from the drop down list but will allow you to use it still. Should beable to search like before with the id "hidden"

  9. #9
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    But the user dont know the id value for each product, they know only product number or PO Number.
    In that case user can enter only the id value in the combo box right?

  10. #10
    Ternick is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2013
    Posts
    25
    Not that I can See on my forms. Make a copy of the form, edit it as needed and test it out. If it doesn't work then you won't have to undo to keep the program the way it was

  11. #11
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    Tried the above
    Its working fine when the fields in combo are from a table, here the fields are from a query, so not able to hide the ID field also

  12. #12
    Ternick is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2013
    Posts
    25
    Ill play around with a database i have tonight and let you know what i figure out

  13. #13
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    Thank you

  14. #14
    Ternick is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2013
    Posts
    25
    Sorry was very busy yesterday. I tested it out and if you set to be bound to the id, sorted by the PO. Go to the box properties and change the first number in the column width to 0" It will hide it and allow you to search like you want. If it still doesn't work could you please upload the form and related tables and query.

  15. #15
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34
    You are correct, its working fine now.
    thank you

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

Similar Threads

  1. Replies: 7
    Last Post: 03-30-2015, 10:04 AM
  2. Replies: 2
    Last Post: 10-21-2014, 07:57 AM
  3. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  4. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  5. Replies: 4
    Last Post: 08-16-2011, 05:54 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