ho scritto così la mia pagina:
ma se provoco un errore di chiave primaria...error number non funziona e la pagina non viene reinstradata e ottengo ovviamentecodice:<% Function quote(testo) quote = Replace(testo, "'", "''") End Function %> <% strSQL = "INSERT INTO "& Tabella &" (CodiceCLI, Ragione,via,citta,cap,Telefono,Referente ,Mail,Blocco,user_cli,pass_cli) VALUES ('"& codiceCLI &"', '"& quote(Ragione) &"','"& quote(VIA)&"','"& citta&"','"& cap&"', '"& Telefono&"', '"& Referente&"', '"& Mail&"','"&Blocco&"','"& user_cli&"','"& pass_cli&"')" cn.Execute(strSQL) cn.close if err.number > 0 then reponse.redirect errore.asp end if %>
dove sto sbagliando?codice:Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC Microsoft Access Driver] The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again. /area_riservata/includes_Db/aggiungiCLI.asp, line 50

Rispondi quotando
- succube della Honda 