Am un tabel al cărui nume de coloană sunt numai numărul. Acum am nevoie pentru a popuate o casetă combo de masă în funcție de valoarea selectată de alta comcbo caseta nume "cboStandard" dar este trigerring de eroare ca "Copilul listă pentru câmpul 2 nu poate fi creat". NB: tabelul De nume de coloană sunt determinate de valoarea selectată în cboStandard casetă combo Mai jos este codul meu pentru a popula caseta combo:
**Dim Series As String = (cboStandard.Text).Substring((cboStandard.Text).IndexOf(" ") + 1, 3)
If Not Series.Contains("Sys") Then
Dim getWeights As String = "Select [" & Series & "] from StandardChicken where [" & Series & "] > 0 "
loadcombo(getWeights, cboStandardWeights, Series)
Dim dt As New DataTable()
dt = ret.LoadDataTable2(getWeights)
If Not (dt.Rows.Count = 0) Then
cboStandardWeights.DataSource = dt
cboStandardWeights.DisplayMember = Series
cboStandardWeights.ValueMember = Series
cboStandardWeights.AutoCompleteSource = AutoCompleteSource.ListItems
ElseIf dt.Rows.Count = 0 Then
cboStandardWeights.Text = ""
cboStandardWeights.DataSource = dt
cboStandardWeights.ValueMember = Series
cboStandardWeights.DisplayMember = Series
cboStandardWeights.AutoCompleteSource = AutoCompleteSource.ListItems
End If**