combobox problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amber

    #1

    combobox problem

    Hello,
    I'm using the following code to work with a combobox:

    combobox1.Datas ource = employeeDataset .Table(0)
    combobox1.Value Member = "STR_INITIA LS"
    combobox1.Displ ayMember = "BOTH_NAMES "
    combobox1.DataB indings.Add("Se lectedValue", mainDataset.Tab les("TDT_MAIN") ,
    "STR_PEER_REVIE W")


    The combobox list is populating correctly, but isn't showing the current
    value ("STR_PEER_REVI EW") 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

Working...