Can I please get some help with this loop. It will loop for the number of records in the DB but it the result.movenext command does not seem to be working as it will print the 1st record over and over (for the number of records inthe DB). Any suggestions greatly appreciated<BR><BR>Do Until result.EOF<BR> Response.Write (result(1))<BR> Response.Write (result(2))<BR> Response.Write (result(5))<BR>&#039;Output the contents of the related text file<BR> FilePath = Server.MapPath("/marshall69/rants/" & result(3) & ".txt")<BR> Set objTextStream = objFSO.OpenTextFile(FilePath, fsoForReading)<BR> Response.Write "" & objTextStream.ReadAll & ""<BR> result.movenext<BR>Loop