Solved

VBA - Databinding mysql database table to listbox

Posted on 2010-09-08
3
636 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 34

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

734 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