Hi,
I guess I've been using Access much more than VB lately. But now I'm trying to use a simple combo box in VB, and need some help.
All I want to do is to have a combo box to show a list of names, for example. If my table has 2 fields, EmployeeID and Employee, I want to show the employees in the drop-down combo box, but refer to the EmployeeID number (the bound field).
Also, I see the regular combo box, plus a DataCombo or a DBCombo. Can someone give me an idea of which to use? All I want is a very simple Access-like combo box:
for example, if the record has an EmployeeID of 99, and the Employee value = "Fred", then I want to be able to select "Fred" from the entire list of names. However I want to pass the ID value of 99 to another control or variable for use later, instead of the actual value "Fred".
I know this is easier than what I'm thinking.
Any help will be greatly appreciated. Thanks in advance!
I guess I've been using Access much more than VB lately. But now I'm trying to use a simple combo box in VB, and need some help.
All I want to do is to have a combo box to show a list of names, for example. If my table has 2 fields, EmployeeID and Employee, I want to show the employees in the drop-down combo box, but refer to the EmployeeID number (the bound field).
Also, I see the regular combo box, plus a DataCombo or a DBCombo. Can someone give me an idea of which to use? All I want is a very simple Access-like combo box:
for example, if the record has an EmployeeID of 99, and the Employee value = "Fred", then I want to be able to select "Fred" from the entire list of names. However I want to pass the ID value of 99 to another control or variable for use later, instead of the actual value "Fred".
I know this is easier than what I'm thinking.
Any help will be greatly appreciated. Thanks in advance!