Results 1 to 3 of 3
  1. #1
    johnjohnson is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    1

    Combo Box question!!

    Hey everyone , i need some help and advice!

    I have a Products form, and I would like a combo box to display a list of values for Vendors, but I want it to store the VendorID but SHOW the VendorName in the table.

    Two questions:

    Is that doable?

    And if it is, would that go under the "good database" category? Is it better for the table to store the VendorID or the Name of the vendor?



    please help! thakn you!

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Should be doable.

    Quote Originally Posted by johnjohnson View Post
    Hey everyone , i need some help and advice!

    I have a Products form, and I would like a combo box to display a list of values for Vendors, but I want it to store the VendorID but SHOW the VendorName in the table.

    I believe you want VendorID to be the bound column, and you want to include at least two columns, VendorID and VendorName, for the combo box. However, if you don't want to display the VendorID you will have to set its width to 0".
    So you have at least 3 fields on the combo box property sheet which you will need to adjust: Bound Column, Column Width?, and No. of columns.

    Two questions:

    Is that doable?

    And if it is, would that go under the "good database" category? Is it better for the table to store the VendorID or the Name of the vendor?

    please help! thakn you!
    Generally, your tables should contain unique pieces of information. Thus, VendorName should be stored in the Vendor table, and other references should be to the vendor key.

  3. #3
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    If you are doing a lookup from a form, it will store the value as the ID. This is good db principles. It uses less data space, is more efficient, reduces errors and is a good practice. If you need to see the actual value, join your two tables in a query and see the results in the query or report.

    Look at this regarding data normalization.

    http://www.deeptraining.com/litwin/d...aseDesign.aspx

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

Similar Threads

  1. Combo Box Question
    By hawkins in forum Forms
    Replies: 1
    Last Post: 06-27-2011, 01:32 AM
  2. Combo/List box question
    By wacky1 in forum Forms
    Replies: 2
    Last Post: 05-22-2011, 09:07 PM
  3. Question-Combo-Box
    By rockrider in forum Forms
    Replies: 1
    Last Post: 02-16-2011, 06:24 PM
  4. Combo box question
    By nkenney in forum Forms
    Replies: 1
    Last Post: 07-09-2009, 08:08 PM
  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