reader = whatever.ExecuteReader()
While reader.Read()
'loop
End While
reader = whatever.ExecuteReader()
If Not[B] reader.Read() [/B]Then Exit Sub '[B]this will advance the reader to first row[/B]
While reader.Read() 'starts looping from row 2!
'loop
End While
You're probably doing a call to Read() BEFORE you start looping
Ensure that it goes like:
VB.NET:reader = whatever.ExecuteReader() While reader.Read() 'loop End While
Not like:
VB.NET:reader = whatever.ExecuteReader() If Not[B] reader.Read() [/B]Then Exit Sub '[B]this will advance the reader to first row[/B] While reader.Read() 'starts looping from row 2! 'loop End While