+ Reply to Thread
Results 1 to 3 of 3

Populate VBA Userform Listbox using SQL Recordset

  1. #1
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Question Populate VBA Userform Listbox using SQL Recordset

    Hi Guys,

    I currently am running a MySQL Workbench server which stores Data that I am adding, retreiving, modify via an Excel interface that runs VB code.

    Is it possible to populate directly into an ActiveX Listbox with values retreived from the record set from the database?

    I realise that I could Populate the recordset to cells then tell the listbox to reference the cells to have it populate the list however i would prefer to directly populate the list box if possible

    Please let me know if this is achievable

    Kind Regards
    Jordan

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

    Re: Populate VBA Userform Listbox using SQL Recordset

    Yes, you can use:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    405

    Re: Populate VBA Userform Listbox using SQL Recordset

    Easy as, Thanks Kyle123!

    Jordan

+ 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