Results 1 to 4 of 4
  1. #1
    anoob is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Posts
    60

    Simple Table Question

    I think this is probably a very simple question, but please bear with me. I have a table with a field called "Vendor". I need to retain the ability to add vendors to this field by typing them in, but I would also like a drop down box that shows previously entered values from this same field, to promote uniformity.



    I have something somewhat working, but there are also several blank "selections" and the vendors in more than one record show up multiple times in the list.

    Any idea what I am missing?

    I suppose I could reference a table with one record that just has vendors, but that seems excessive for such a simple task...

    Thanks very much.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    The "standard" method would have a Vendors table with info about each vendor, and you'd use a combo box that got its selections from that table. You'd add new vendors using the Not in List event of the combo.

    You can use your current method if you want. You'd use a combo with a row source like:

    SELECT VendorName
    FROM MainTable
    WHERE Len(VendorName & "") > 0
    GROUP BY VendorName
    ORDER BY VendorName

    Which should show one instance of each vendor, with no blanks.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    anoob is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2011
    Posts
    60
    AH, these both work well. Thanks very much!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. simple syntax question
    By markjkubicki in forum Programming
    Replies: 6
    Last Post: 09-14-2010, 04:13 PM
  2. Simple question
    By KenM in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:32 PM
  3. Simple question?
    By roads.zx in forum Access
    Replies: 0
    Last Post: 10-15-2009, 04:56 PM
  4. Very simple question!
    By fiddley in forum Programming
    Replies: 2
    Last Post: 04-28-2009, 02:16 AM
  5. Should be simple Query Question
    By brj1 in forum Queries
    Replies: 2
    Last Post: 03-04-2006, 01:11 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