Ciao a tutti non riesco a uscirne fuori devo inserire un numero progressivo ad ogni record estratto dalla sql....un suggerimento ? grazie
<%
Set rsL = Server.CreateObject("ADODB.RecordSet")
if ntf = "" Or ntf = "0" Or ntf = "1" then
sqlL = "SELECT top 2 letture.nContatore, letture.valore, letture.dataLettura FROM letture WHERE (((letture.nContatore)='"&nc&"')) order by valore desc"
else
sqlL = "SELECT top "&NTF&" letture.nContatore, letture.valore, letture.dataLettura FROM letture WHERE (((letture.nContatore)='"&nc&"')) order by valore desc"
end if
rsL.Open sqlL, conn, 3, 3
if rsL.recordcount > 0 then
while not rsL.EOF
n = rsL.recordcount
%>
QUI DEVE COMPARIRE IL N° - <%=rsL("nContatore")%> - <%=rsL("valore")%> -
<% if rsL("dataLettura") = "" then %>
DATA NON INSERITA
<% else %>
<%=rsL("dataLettura")%>
<% end if %>
<%
rsL.movenext
wend
rsL.Close
end if
%>

Rispondi quotando
..... un'attimo di smarrimento portate pazienza
