Results 1 to 3 of 3

Thread: combobox select item

  1. #1
    Guest

    Post

    I want to select an item on a combobox list based on its listindex - i.e., from program code. I have created a newindex for each item based on its database key. Would someone tell me, please, how to do this?

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    Why not use a DB-Combobox ? With that you can set it to display one field, and be 'bound' to another.

    So, you would put in

    DBCombo1.BoundText=123456

    and the record with the id 123456 would be displayed in the combobox.

    See the help for more details.



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  3. #3
    Guest

    Post

    i guess i shy away from bound controls. But if that is the only way ....

Posting Permissions

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



Click Here to Expand Forum to Full Width