We help IT Professionals succeed at work.

Populate combo-box from ODBC in Excel?

3,243 Views
Last Modified: 2008-06-20
Experts,
 I have an ODBC set up which links to a mySQL database, and need to run a query which produces a single column to subsequently populate a combo box in a worksheet. I know the SQL for the query, but it's been a while since I rolled up my sleeves in VBA so any help is much appreciated!

So basically I need:
1. VBA to connect to the ODBC
2. run the Query (produces a single column- I have the SQL)
3. populate a combo box in my worksheet with the result

Many thanks
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.