Ciao,
ho realizzato una form con 2 text box: "camposigla" e "camponumero".
Alla pressione del tasto si Submit, viene avviata la Stored Procedure seguente:
<%
if(Request("camposigla") <> "") then comandotest__varsigla = Request("camposigla")
if(Request("camponumero") <> "") then comandotest__varnumero = Request("camponumero")
%>
<%
set comandotest = Server.CreateObject("ADODB.Command")
comandotest.ActiveConnection = MM_Collaudi_STRING
comandotest.CommandText = "INSERT INTO targhe (targa) VALUES ('" + Replace(comandotest__varsigla, "'", "''") + "'&'" + Replace(comandotest__varnumero, "'", "''") + "') "
comandotest.CommandType = 1
comandotest.CommandTimeout = 0
comandotest.Prepared = true
comandotest.Execute()
%>
che va ad inserire nel campo "targa" (della tabella "targhe") l'unione delle 2 text box.
E' possibile, prima di eseguire tale operazione, di verificare se è già presente la targa che si vuole inserire?
Grazie....![]()
![]()