Results 1 to 3 of 3

Thread: two entrys in a combobox

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4
    hi,

    in access i can specify the datasource for a combobox like:
    datasource = Select fruit, price from all group by fruit, price order by fruit;
    and Rows = 2. then i get both, the fruit and the price in one combobox. its looking like this :
    APPLE | 1.99
    STRAWBERRY | 2.49
    and so on.
    is this also possible in VB ? i tried the ComboBox, the DBCombo and the DataCombo but i don´t get it. can someone please help me?


    thanks broesel

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    I don't think it is possible in VB directly. If you just want to have it, you have to manually construct strings where each string contains the values of the two/more fields combined, and then add these strings into the combo box.

    If you want details of how to do it, you can ask me (Just mention what you want in the email, though).

    Hope it helps...
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    4
    thanks for your reply, honeybee

    but the problem is, that i´m "working" with the selected, so if i would add the strings together i have to split them befor i can send the selected string to the database. there must be an easyer way,i hope.

    -bimsel

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