Salve vorrei invece di fare una insert nel database fare una update lo script è il seguente:
codice:
<%
offerta_massima = trim(request.Form("offerta_massima"))
offerta_digitata = trim(request.Form("offerta_digitata"))
if offerta_massima < offerta_digitata then
ConnectString ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("mioDB.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
Conn.open ConnectString
sql = "INSERT INTO offerte (max_offerta) VALUES ("& offerta_digitata &")"
conn.Execute(sql)
set OBJdbConnection=Nothing
response.redirect("index.asp")
else
response.Write("valore inferiore a quello iniziale")
end if
set RS=Nothing
set OBJdbConnection=Nothing
%>
provo con questo tipo di interrogazione ma mi da errore
codice:
sql = "UPDATE offerte (max_offerta) VALUES ("& offerta_digitata &")"