vbscript - ADO Recordset eof is always true even though there is data -


below piece of code runs stored procedure , returns 1 row.

if run below piece of code eof returns true in cases, when know there data. works correctly not.

set objconn = server.createobject("adodb.connection") objconn.open funcreadintranetconnection set rs = objconn.execute(strsql)   if not rs.eof  else  end if 

i running code twice after each other, not sure if related, recreate connections etc each time.

any suggestions appreciated.

i suggest:

do while not rs.eof 'your code here loop 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -