Hi Akram,
you give only very little information, so I have to guess here.
Are you trying to loop through an ADODB.recordset in a while loop or something?
Then please first check if you have records returned by testing eof, like
Code:
Set oRS=Server.CreateObject("ADODB.recordset")
oRS.execute "SELECT * FROM employees", oConn
if not oRS.eof then
While not oRS.eof
' Do something with the data here
oRS.movenext
Loop
end if