you can leave the close recordset code on the bottom of the page.
Move the open recordset code to just below the DO loop and make sure to set a parameter to filter based on a temporary $_POST variable that you make up.... since DW recordset code doesn't work when filtered with a parameter directly from another recordset, you need to use a temporary "fake" post variable and then add a line of code to set it like:
<?php
$_POST['myfakevar'] = $row_myRS['idField'];
?>
then you can filter the nested recordset on the post variable "myfakevar"


