Link to home
Start Free TrialLog in
Avatar of Jay P
Jay PFlag for United States of America

asked on

VB6 Combo Box - Need to display Emp name but send Empid to the database

Hi Experts,
I am using Combo box in VB6. I am loading this combo box with employee names from database (in form_load event). I see two properties for combo box, one being datafield and the other being 'list' but I dont know how I can use them.
Could I use one of these columns, which does not display, to hold empid and once the user selects an Employee name, then I send the corresponding empid from that field to the database? Please suggest with code examples.
/uzairp
SOLUTION
Avatar of Omar McKoy
Omar McKoy
Flag of Jamaica 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
ASKER CERTIFIED SOLUTION
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