codice:
<%
'connessione con il db
set conn=server.createobject("ADODB.connection")
set rs=server.createobject("ADODB.recordset")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data source=" & Server.MapPath("db_aft_usato.mdb")
%>
<body leftmargin="0" topmargin="6" bgcolor="#C0C0C0" background="images/sfondo.gif">
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" width="30" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
ID</td>
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" width="80" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
Nome</td>
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" width="100" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
Tipo</td>
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
Dotazione</td>
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
Caratteristiche Tecniche</td>
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" width="50" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
Dimensioni</td>
<td align="center" height="20" bordercolor="#555555" bgcolor="#C0C0C0" width="50" style="border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1; font-family:Verdana; font-size:8 pt; color:#555555">
Peso</td>
</tr>
<%
sql = "SELECT * from usato order by data desc, id desc"
rs.Open sql, conn, 1, 3
do while not rs.EOF
%>
<tr>
<td height="20" style="border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("id").value)
%>
</td>
<td height="20" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("nome").value)
%>
</td>
<td height="20" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("tipo").value)
%>
</td>
<td height="20" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("dotazione").value)
%>
</td>
<td height="20" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("caratteristiche-tecniche").value)
%>
</td>
<td height="20" style="border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("dimensioni").value)
%>
</td>
<td height="20" style="border-right-style: none; border-right-width: medium; border-top-style: solid; border-top-width: 1; border-bottom-style: none; border-bottom-width: medium">
<%
Response.Write(rs.fields.item("peso").value)
%>
</td>
<%
rs.movenext
loop
%>
l'errore è
Tipo di errore:
Microsoft JET Database Engine (0x80040E10)
Nessun valore specificato per alcuni parametri necessari.
/AFt/usato.asp, line 74
e la linea 74 è
rs.Open sql, conn, 1, 3
grazie mille