I am having problems filling the combo box. Here is the code I have:
Dim conn = New Microsoft.Data.Odbc.OdbcConnection("DSN=MAC")
Dim ds As New Data.DataSet("Test2")
Dim dc As New Microsoft.Data.Odbc.OdbcCommand()
Dim da As New Microsoft.Data.Odbc.OdbcDataAdapter()
conn.Open()
dc.CommandText = "SELECT Item_No FROM IMINVLOC"
dc.Connection = conn
da.SelectCommand = dc
da.Fill(ds, "Item_No")
cboMain.DataSource = ds
dc.Connection.Close()
Here is what shows up in the box:
System.Data.DataViewManagerListItemTypeDescriptor
I'm not sure whats going wrong.
Dim conn = New Microsoft.Data.Odbc.OdbcConnection("DSN=MAC")
Dim ds As New Data.DataSet("Test2")
Dim dc As New Microsoft.Data.Odbc.OdbcCommand()
Dim da As New Microsoft.Data.Odbc.OdbcDataAdapter()
conn.Open()
dc.CommandText = "SELECT Item_No FROM IMINVLOC"
dc.Connection = conn
da.SelectCommand = dc
da.Fill(ds, "Item_No")
cboMain.DataSource = ds
dc.Connection.Close()
Here is what shows up in the box:
System.Data.DataViewManagerListItemTypeDescriptor
I'm not sure whats going wrong.