combobox problem

amber

Member
Joined
Oct 27, 2004
Messages
20
Programming Experience
Beginner
Hello,
I'm using the following code to work with a combobox:

combobox1.Datasource = employeeDataset.Table(0)
combobox1.ValueMember = "STR_INITIALS"
combobox1.DisplayMember = "BOTH_NAMES"
combobox1.DataBindings.Add("SelectedValue", mainDataset.Tables("TDT_MAIN"), "STR_PEER_REVIEW")


The combobox list is populating correctly, but isn't showing the current value ("STR_PEER_REVIEW") when there is a value in the database.

To clarify, if there is an employee's name for the current record in the TDT_MAIN table - display it, if the combobox 'arrow' is pressed, it should display a list of all employees in employee table.
When an employee is selected, and record saved, it saves to TDT_MAIN.

This doesn't seem to be working for me :)

TIA,
amber


:confused:
 
Back
Top