Solved

VBA - Databinding mysql database table to listbox

Posted on 2010-09-08
3
627 Views
Last Modified: 2012-06-21
Hi,

I am very new to VBA.  Can someone give me a tutorial or example of how to databind a field in a mySQL table to a listbox?

Thanks
0
Comment
Question by:NerishaB
3 Comments
 
LVL 11

Accepted Solution

by:
jkpieterse earned 500 total points
ID: 33625369
You'd have to use something like ADO to fetch a recordset from the mySQL table and then populate the listbox with the values in the returned recordset. See this site for examples on working with ADO:
http://www.erlandsendata.no/english/index.php?t=envbadac
0
 
LVL 33

Expert Comment

by:Norie
ID: 33630071
Where is your listbox?

Access?

MySQL?

Excel?
0
 

Author Closing Comment

by:NerishaB
ID: 33659786
Thanks, the examples helped me alot.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question