che mi dite di questo metodo:
codice:
perciò dovrei fare una cosa del genere:
Dim nwindConn As OleDbConnection = New OleDbConnection(".....")
Dim selectCMD As OleDbCommand = New OleDbCommand("SELECT CustomerID, CompanyName FROM Customers", nwindConn)
Dim custDA As OleDbDataAdapter = New OleDbDataAdapter
custDA.SelectCommand = selectCMD
Dim custDS As DataSet = New DataSet
myDataAdapter.Fill(myDataSet, 9, 15, "Customers")
credo che al posto del 9 e del 15 possa mettere delle variabili, vero?
e la posizione del record che cerco come la ricavo? con un COUNT ...WHERE id=valore