Link to home
Start Free TrialLog in
Avatar of majathebee
majathebeeFlag for United States of America

asked on

How to create and populate a dropdown with data from the database table?

Hi -

My Windows form needs to have a dropdown displaying values from a table in database.

Here is the sql I need:  strSql = "SELECT CodeNbr, CodeValue FROM Code WHERE (TableName = 'Test') AND (DeleteInd <> 1)"

What control do I use to create a dropdown? And how?

Thanks for your help!
ASKER CERTIFIED SOLUTION
Avatar of ororiole
ororiole
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of majathebee

ASKER

Thank you very much. I'll work on it right now.
I got it! Thanks for your help. :)
Glad I could help. :)