Estrarre dati da db e modifica

ho fatto cosi:

<%
Dim ModID
ModID = Request.Form("id")

MyDB="database.mdb"
Set strConn = Server.CreateObject("ADODB.Connection")
strConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(myDB)
strSql = "UPDATE Tabella SET Tel = '" & Request("Tel") & "', Cell = '" & Request("Cell") & "', Fax = '" & Request("Fax") & "' WHERE id = " & ModID
strConn.Close
Set strConn = Nothing
%>

<html><head>
<title>Salvataggio dei dati</title>
</head>

<p align=center>
Il database è stato aggiornato.
</p>

</body>
</html

ma c'è il solito problema. "Sembra" funzionare ma invece non va per niente. Mi dice pure database aggiornato ma invece non lo aggiorna anzi mi cancella pure dei record!
 
...cambia il nome della variabile del database (MyDB)... comunque non no lo so! non ho un posto dove testare il code, a me sembra giusto.
 

Discussioni simili