Hi! I have this code for my DB and I'm using Visual Basic 2010 Express
I need filling an array with the field NOMBRE. I think the better way is a Datareader but I don't know how. Can help me, please? Thx.
VB.NET:
Dim dta As OleDbDataAdapter
Dim con As New OleDbConnection
.....more code...
Me.con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & "c:\socios.mdb; Persist Security Info=False"
con.Open()
dta = New OleDbDataAdapter("Select nombre from inscritos where status= 1 ", con)
Dim oCB As OleDbCommandBuilder = New OleDbCommandBuilder(dta)
dst = New DataSet
dta.Fill(dst, "inscritos")
vActivos = Me.dst.Tables("inscritos").Rows.Count
I need filling an array with the field NOMBRE. I think the better way is a Datareader but I don't know how. Can help me, please? Thx.