Index the Rows collection using a For Next or a For Each
dim i as Integer, dr as DataRow
For i = 0 to myDs("MyTable").Rows.Count-1
dr = Ds("MyTable").Rows(i)
... do what you need to do
Next i
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Actually, I should also ask the question: Why are you looping? There are
good reasons to do so, but if you're executing queries on a row-by-row basis
or even changing the data (to be posted back to the database) in the
DataSet, these actions can often be executed by code running on the server.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.