Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "driver={Microsoft Access Driver(*.mdb)}; dbq=" & server.mappath("mdb-database/citazioni.mdb")
Set RS = Server.CreateObject("ADODB.Recordset")
Set RS_autori = Server.CreateObject("ADODBRecordset")
strSQL = "select * from tbl_citazioni order by citazione"
RS.open strSQL, Conn, 1
strsql_autori="select * from tbl_autori"
rs_autori.open strsql_autori, conn
If RS.Eof=True or RS.Bof=True and rs_autori.eof=true then
Response.Write "
Nessun risultato trovato"
Else
For i=1 to RecordsPerPagina
if Not RS.EOF or not rs_autori.eof then
Response.Write "
" & rs("Citazione") & ". "
rs("Autore2")= Id_autore
if rs_autori("ID")= ID_autore then
Response.Write "
[" & rs_autori("Autore") & "]"
else
rs_autori.MoveNext
end if
RS.MoveNext
end if
Next
End if