Solved

VBA - Databinding mysql database table to listbox

Posted on 2010-09-08
3
619 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now