Originariamente inviato da Roby_72
Dipende quello che ci hai messo in "dettaglio.asp"...
Roby
dettaglio.asp:
codice:
<%
Session.LCID = 1040
tabella1 = Request.form("tabella1")
Dim strDenominazione
strDenominazione = Replace(Request("tabella1"), "_", " ")
Dim ConnDown
Set ConnDown=Server.CreateObject("ADODB.Connection")
ConnDown.Open "driver={Microsoft Access Driver (*.mdb)};dbq="& server.MapPath(path&"upload.mdb")
Dim SQLDown,RECDown
if tabella1 = "TUTTI" then
SQLDown = "select * from tbl"
Set RECDown = ConnDown.Execute(SQLDown)
else
SQLDown="SELECT * FROM tbl WHERE nome = '"&strDenominazione&"' order by ID asc"
Set RECDown=ConnDown.Execute(SQLDown)
end if
%>
<td align="center"><%=RECDown("nome")%></td>
<%
RECDown.MoveNext
WEnd
end if
RECDown.Close
ConnDown.Close
Set RECDown = Nothing
Set ConnDown = Nothing
%>