Ti posto la pagina saucer:
codice:
<%
Set DBConn = Server.CreateObject("ADODB.Connection")
DBConn.open"Driver={Microsoft Access Driver (*.mdb)}; dbq=" & server.MapPath("/db/miodb.mdb")
Set objRs = Server.createObject("ADODB.Recordset")
Dim objRS,DBConn
RecordsPerPagina = 5
page = Request("page")
if page="" then page=1
strSQL = "SELECT * FROM tabella order by ID DESC"
objRS.open strSQL, DBConn, 1
objRS.PageSize = RecordsPerPagina
objRS.AbsolutePage = page
If objRS.Eof=True or objRS.Bof=True then
Response.Write "
Nessun risultato trovato</P>"
Else
Response.Write ("")
For i=1 to RecordsPerPagina
if Not objRS.EOF then
%>
<table width="100%" border="0" cellspacing="1" cellpadding="5" id="table1">
<tr>
<td bgcolor="#3E3EFF" width="5%">
<font face="Verdana" size="2" color="#FFFFFF">fornitore</font></td><td bgcolor="#3E3EFF" align="center" width="30%">
<font face="Verdana" size="2" color="#FFFFFF">articolo</font></td><td bgcolor="#3E3EFF" align="center" width="30%">
<font face="Verdana" size="2" color="#FFFFFF">descrizione</font></td><td bgcolor="#3E3EFF" align="center" width="30%">
<font face="Verdana" size="2" color="#FFFFFF">prezzo</font></td><td bgcolor="#3E3EFF" align="center" width="30%">
<font face="Verdana" size="2" color="#FFFFFF">prezzo_dinari</font></td><td bgcolor="#008000" align="center" width="30%">
</tr>
<tr>
<td bgcolor="#B0FFFF" width="30%" align="center"><font face="Verdana" size="2"><%response.write(objRs("fornitore"))%></font></td>
<td bgcolor="#B0FFFF" width="30%" align="center"><font face="Verdana" size="2"><%response.write(objRs("articolo"))%></font></td>
<td bgcolor="#B0FFFF" width="30%" align="center"><font face="Verdana" size="2"><%response.write(objRs("descrizione"))%></font></td>
<td bgcolor="#B0FFFF" width="30%" align="center"><font face="Verdana" size="2"><%response.write(objRs("prezzo"))%></font></td>
<td bgcolor="#B0FFFF" width="30%" align="center"><font face="Verdana" size="2"><%response.write(objRs("prezzo_dinari"))%></font></td>
</tr>
</table>
</a></p>
<%
objRS.MoveNext
end if
Next
Response.Write ("</table></center>")
End if
Response.Write "
<font face= Verdana size=2>Pagine:</font></p> "
For pag=1 to objRS.PageCount
Response.Write "<font face= Verdana size=2><A href='miapagina.asp?page=" & pag & "'>"
Response.Write pag
Response.Write "</A> "
Next
Response.Write "</P>"
objRS.Close
Set objRS=Nothing
DBConn.Close
Set DBConn=Nothing
%>
Potresti aiutarmi come impostare la query?