Hi,
I have been using VB6 up until recently and have switched to VB.Net. What Im trying to do is populate a combo box from a recordset but I cant get the same to work in VB.Net.
E.G.
strConn = "Microsoft.Jet.OLEDB.4.0;DSN=CorlinDSN;"
'Wanted to use an ODBC Connection & Access
dbConn.Open strConn
rs = "SELECT * FROM Tools"
While Not rs.EOF
cmbBox1.Items.Add(rs(ColA) & rs(ColB))
rs.MoveNext
Wend
Are the structures completely changed now or do I just need to do some fine tuning?
Help as always is greatly appreciated.
I have been using VB6 up until recently and have switched to VB.Net. What Im trying to do is populate a combo box from a recordset but I cant get the same to work in VB.Net.
E.G.
strConn = "Microsoft.Jet.OLEDB.4.0;DSN=CorlinDSN;"
'Wanted to use an ODBC Connection & Access
dbConn.Open strConn
rs = "SELECT * FROM Tools"
While Not rs.EOF
cmbBox1.Items.Add(rs(ColA) & rs(ColB))
rs.MoveNext
Wend
Are the structures completely changed now or do I just need to do some fine tuning?
Help as always is greatly appreciated.