codice:
<HTML>
<BODY>
<FORM ACTION=pagina2.asp METHOD=POST NAME="Db">
Riferimento<INPUT TYPE=TEXT NAME="Riferimento">
<INPUT TYPE=SUBMIT VALUE="Cerca">
</FORM>
</BODY>
</HTML>
Pagina2.asp
codice:
<HTML>
<BODY>
<%
Riferimento=Request.Form("Riferimento")
Rif=Split(Riferimento, "/")
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\\tuofile.mdb")
SQL="SELECT * FROM Tabella1 where Rif1=" & Rif(0) & "AND Rif2=" & Rif(1)
Set objrs=objconn.execute(SQL)
If not objrs.EOF then
Response.Write "<TABLE BORDER=1><TR>"
while not objrs.EOF
Response.Write "<TD>" & objrs("Prodotti") & "</TD>"
objrs.Movenext
Wend
Response.Write "</TABLE>"
Else
Response.Write ("Nessun record trovato!")
End if
%>
</BODY>
</HTML>
Valuta bene i grassetti e inserisci i nomi corretti sopratutto quello della pagina2.asp che è quella che viene richiamata dal form.
L'ho testato con una tabella come quella da te indicata e funziona.
Ciao!