Hello,
I use this code to loop through all items and read all of them, from 1st item to the last one!
This is OK when I want to read all items of this table.
But what should I do if I want to read only item number 100 to 200?
I mean in the above code how can I change the While loop to a For loop with specified start and end point?
Thank you for helping
I use this code to loop through all items and read all of them, from 1st item to the last one!
Code:
Dim ReadUsers As New OleDb.OleDbCommand("SELECT * FROM Emails WHERE GroupID = " + MyID + "" + SortSQL, MyConnections)
Dim MyReader1 As OleDbDataReader = ReadUsers.ExecuteReader
While MyReader1.Read
...
End While
But what should I do if I want to read only item number 100 to 200?
I mean in the above code how can I change the While loop to a For loop with specified start and end point?
Thank you for helping