Michael, I'm not sure why you're program is behaving that way... but I've never navigated through a resultset in this manner with a for loop... I always use a do loop... Is there a reason why you need to know the number of rows ahead of time rather then just keeping a counter going from the beginning? David .... .... Set result.query = qry qry.sql = "CALL WEB.WEBUNDLVR5('" & uname & "', "& code1 & ")" result.execute Do result.nextrow ... ... ... rowno=rowno+1 Loop Until result.isendofdata
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.