Mi correggo:
codice:
<%
'controlliamo il secondo rec
if not rec.eof then 'il secondo è pieno
Do While Not REC.EOF 'ciclo sul secondo recordset
%>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%=REC("reg")%></td>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%=REC("prov")%></td>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><%=REC("com")%></td>
<%
REC.movenext
loop
%>
<%
else
'seleziona entrambe le tabelle (senza condizioni)
SQLDown = "select * From TABELLA1 ORDER BY REG"
Set RECDown = ConnDown.Execute(SQLDown)
if not RECDown.eof then 'il primo è pieno
While Not RECDown.EOF 'ciclo sul primo recordset
%>
...
VISUALIZZO DATI TABELLAN1
...
'muovo il primo
RECDown.MoveNext
Wend
end if
'chiudo il primo
RECDown.Close
Set RECdown = Nothing
SQL = "select * From TABELLAN2"
Set REC = ConnDown.Execute(SQL)
'il secondo è pieno
if not REC.eof then
'ciclo sul secondo recordset
While Not REC.EOF
...
VISUALIZZO DATI TABELLAN2
...
'muovo il secondo
REC.MoveNext
Wend
end if
'CHIUDO LA CONN
ConnDown.Close
Set ConnDown = Nothing
end if
end if
continua a non estrarre niente quando le select = TUTTE