+ Reply to Thread
Results 1 to 4 of 4

Add items to Combobox from a recordset

  1. #1
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Add items to Combobox from a recordset

    Dear Excel Gurus,

    I have a small VBA related issue, I need help with.

    I developed an excel application that interacts with an Access database. I need to copy all the distinct values in a Column from one of the tables and add them to a combobox in the form. I am using SELECT DISTINCT statement to find all the values from the column.

    Can you please guide me as to how I can do the final step of adding the DISTINCT values to the combobox?

    Please Login or Register  to view this content.
    Thanks in advance,

    cheers,
    Ravi.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Add items to Combobox from a recordset

    Please Login or Register  to view this content.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Add items to Combobox from a recordset

    Basically:

    Please Login or Register  to view this content.
    NB adapt the file's fullename



  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Add items to Combobox from a recordset

    @snb, .list? I think you mean .column

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1