Loop a recordset within a looping recordset
$30-50 USD
Paid on delivery
I have two looping recordsets and one recordset loops within the other recordset. The ASP/ADO code does not seem to work as I get the following error:
<<
[url removed, login to view] error '800a0e79'
Operation is not allowed when the object is open.
line 34
>>
I need someone to examine my code and help me figure out how I can get one recordset to loop within another recordset. Once I get this to work within an ASP page I would eventually create a Stored Procedure to run the SQL.
Here is some pseudocode which is an outline for what I am trying to do:
<<
SQL = "SELECT Id FROM Units"
[url removed, login to view] SQL
While Not [url removed, login to view]
SQL2 = "SELECT * FROM Measurements WHERE UnitID = " & rs1("Id")
[url removed, login to view] SQL2
While Not [url removed, login to view]
[url removed, login to view](rs2("FirstName"))
[url removed, login to view]()
Loop
[url removed, login to view]()
Loop
>>
I am not able to provide the Database to the coder, but hopefully someone has done this before and can give me guidance.
Any help would be greatly appreciated (and rewarded). I will eventually need to turn this into a Stored Procedure later.
## Deliverables
Corrected code with thorough comments to explain how the code works.
## Platform
ASP, ADO, SQL Server 2000, IIS 5.0
Project ID: #3259610