Refreshing sqldatareader after read method [vb.Net]

  • Thread starter Thread starter Hardik Shah
  • Start date Start date
H

Hardik Shah

Hi,

I want to refresh (get first record) again after calling .read method once.
I give following command but second loop doesn't give any output.

While myreader.read ' myreader is a sqldatareader
console (myreader.item("field_nm")
end while

While myreader.read ' myreader is a sqldatareader
console (myreader.item("field_nm")
end while

Thanks in advance.

Hardik Shah
 
Hardik Shah,

The data reader is forward only. Once you have read past a record you cannot
read that record again.

Kerry Moorman
 
Back
Top