I've got a datareader that I'm looping through and I'm having some trouble when there is only one record in it. I have to check make sure there is some data in the reader by first doing 'if rs.read() then'. If there is data then I do a 'loop'. So it looks something like this:<BR><BR>if rs.read() then ''is there data<BR> while rs.read ''there is data so write it out<BR> ''write some stuff<BR> end while<BR>end if<BR><BR>My problem is that if there is only one line/record of data it gets moved off of that when I do the 'if rs.read' check so when it moves to the next line to loop and write it out there is nothing there. I can't seem to figure out a way to check to see if there is data without advancing the reader. Any suggestions? Thanks.