Вызов значения базы данных в поле со списком для DisplayMember и ValueMember, но свойство ValueMember здесь не работает .......
sql = "select NAME_DESC,ACCOUNT_CODE from ACCOUNT_CONTROLS ORDER by
NAME_DESC"
cmd = New OracleCommand(sql, sgcnn)
adapter.SelectCommand = cmd
adapter.Fill(ds)
adapter.Dispose()
cmd.Dispose()
CmbConAcc.DataSource = ds.Tables(0)
CmbConAcc.DisplayMember = "NAME_DESC"
CmbConAcc.ValueMember = "ACCOUNT_CODE"
--- пытается вставить данные ValueMember в базу данных
Dim cmd As OracleCommand = Новый OracleCommand ()
cmd.CommandText = "INSERT INTO ACCOUNT_HEADS (HEAD_CODE,NAME_DESC,ACCOUNT_CODE,REMARKS)" &
"values( trim(" & TxtAccCode.Text & "),trim(' " & TxtNDesc.Text & " '),trim(' " & CmbConAcc.ValueMember & " '),trim(' " &
txtRemarks.Text & " ')) "