Originariamente inviato da weppos
Con
codice:
SELECT TOP 10 numero
richiami solo il campo numero e non puoi quindi stampare il campo id
Devi richiamarlo o non usarlo.
Grazie ho risolto...
ho solo un problema con la formattazione della tbl html che deve contenere i dati...
codice:
<%
Set ConnDown=Server.CreateObject("ADODB.Connection")
OpenStr = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.Mappath("/mdb-database/contaclik.mdb")
ConnDown.Open openStr
Dim SQLDown, RECDown
SQLDown = "SELECT TOP 10 * FROM clik order by numero desc"
Set RECDown = ConnDown.Execute(SQLDown)
If Not RECDown.EOF Then
Do While (Not RECDown.EOF)
%>
<td><font face="Verdana" style="font-size: 8pt"><%=RECDown("id")%></font></td>
<td><font face="Verdana" style="font-size: 8pt"><%=RECDown("numero")%></font></td>
<td><font face="Verdana" style="font-size: 8pt"><%=RECDown("titolo")%></font></td>
<td><font face="Verdana" style="font-size: 8pt"><%=RECDown("link")%></font></td>
<%
RECDown.MoveNext
Loop
end if
RECDown.Close
Set RECDown = Nothing
ConnDown.Close
Set ConnDown = Nothing
%>