codice:
25 strId=request.form("idcanc")
26 vettId=split(strId,",")
27 strSql="Delete from TB_GB where"
28 s=""
29 for i=0 to UBound(vettId)
30 if s="" then
31 s=" ID_GB="&chr(34)&vettId(i)&chr(34)
32 else
33 s=s&" or ID_GB="&chr(34)&vettId(i)&chr(34)
34 end if
35 next
36 strSql=strSql&s
37
38 Set Conn = Server.CreateObject("ADODB.Connection")
39 Conn.Open(strCon)
40 Conn.Execute strSql
41
42 Conn.Close
43 Set Conn = Nothing
Io ho fatto questo ma mi da il seguente errore:
Tipo di errore:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][Driver ODBC Microsoft Access] Parametri insufficienti. Previsto 2.
/admin/gb.asp, line 40