codice:
<%percorso="/mdb-database/web.mdb"%>
<%
percorso="/mdb-database/web.mdb"
%>
<%tabella ="Segnalazione"%>
<%
strSQL = "INSERT INTO "& Tabella &" ( CodiceCli,stato,data_apertura) VALUES ('"& codiceCLI &"', '"& stato &"', '"& data_apertura&"')"
cn.Execute(strSQL)
strSQL = "SELECT @@IDENTITY FROM "& Tabella
set objRS = server.createobject("adodb.recordset")
objRS.Open strSQL, Cn
if not objRS.EOF then
inserito = objRS(0)
end if
objRS.Close
set objRS = nothing
cn.close
set cn = nothing
response.write("Inserito: "& inserito)
%>
Roby