Results 1 to 2 of 2

Thread: witrh ADO populate combobox with unique vale in table

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,933

    witrh ADO populate combobox with unique vale in table

    Have a mdb mymdb.mdb in c:\mydir.
    In this mdb habe a table mytable
    In table have field myfiled

    In this field have:

    AAAA
    AAAA
    BBBB
    CCCC
    CCCC
    ...
    ZZZZ

    how to fill with unique value from field the combobox mycombobox.

    AAAA
    BBBB
    CCCC
    ...
    ZZZZ

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: witrh ADO populate combobox with unique vale in table

    Thread moved to Database Development forum (the "VB6" forum is meant for questions which don't fit in more specific forums)

    There is an article in the Database FAQs about using ADO to fill a combobox, simply add the keyword DISTINCT to your SQL statement that gets the data.

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