G
Gary Paris
I have a combobox on my windows form. It is populated from the "staff"
table which has a StaffID and StaffName.
The code is:
cmbStaff.DataSource = objDataset.Tables("Staff")
cmbStaff.DisplayMember = "StaffName"
cmbStaff.ValueMember = "StaffID"
When I query my contact database how can I make sure that the StaffID value
points to the correct record in the combobox?
I checked the properties of the combobox and can't find the right way to
associate StaffID to StaffName.
HELP PLEASE.
Thanks,
Gary
table which has a StaffID and StaffName.
The code is:
cmbStaff.DataSource = objDataset.Tables("Staff")
cmbStaff.DisplayMember = "StaffName"
cmbStaff.ValueMember = "StaffID"
When I query my contact database how can I make sure that the StaffID value
points to the correct record in the combobox?
I checked the properties of the combobox and can't find the right way to
associate StaffID to StaffName.
HELP PLEASE.
Thanks,
Gary