Hi! I would like to perform a set of queries within a loop and then reference each foundset later.
for i = 1 to 12
strSQL = "SELECT * from myTable WHERE some condition"
set rst = dbConnection.execute(strSQL)
next
The problem with the above is that I need another name for rst for each query to keep the foundsets separate. Note that the WHERE clause will change for each query, although my example doesn't show this. I ideally would like to concatenate the loop variable, i, on to the rst variable in some way, but am unclear how to do this in ASP.
Later on, I want to access each foundset in a separate loop.
Any way to do this?
Thanks!
Later on,
for i = 1 to 12
strSQL = "SELECT * from myTable WHERE some condition"
set rst = dbConnection.execute(strSQL)
next
The problem with the above is that I need another name for rst for each query to keep the foundsets separate. Note that the WHERE clause will change for each query, although my example doesn't show this. I ideally would like to concatenate the loop variable, i, on to the rst variable in some way, but am unclear how to do this in ASP.
Later on, I want to access each foundset in a separate loop.
Any way to do this?
Thanks!
Later on,