Results 1 to 3 of 3

Thread: Combo (2000)

  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combo (2000)

    Hi, have a combo box that shows both the numeric ID field and the name for the ID (ie. 1 Cakes). I only want cakes to be shown in the combo box but the ID number to be the stored data in the d/b. How do I change any properties to achieve this?

    Thanks Darren.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Combo (2000)

    The Row Source of the combo box should return the ID as first column (field), and the name as second column.
    Set the Bound Column property to 1 (the default value); this specifies that the first column (the ID) will be stored.
    Set the Column Count to 2, and the Column Widths property to 0;1. This tells Access to hide the first column, and only display the second (the name).

  3. #3
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Combo (2000)

    Thank u Hans for this and my earlier post.

    Regards Darren.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •