Carissimi,
utilizzando questo script per il caricamento multiplo di dati nel db access ho un errore ecco lo script:
Ho questo errore:codice:ArrayId=Split(Request.Form("ids"),",") Arrayfoto=Split(Request.Form("foto"),",") Arrayformato=Split(Request.Form("formato"),",") Arrayformatos=Split(Request.Form("formatos"),",") Arraysupporto=Split(Request.Form("supporto"),",") Arrayquantita=Split(Request.Form("quantita"),",") Arrayprezzo=Split(Request.Form("prezzo"),",") for i=0 to ubound(ArrayId) foto=Arrayfoto(i) formato=Arrayformato(i) formatos=Arrayformatos(i) supporto=Arraysupporto(i) quantita=Arrayquantita(i) prezzo=Arrayprezzo(i) strSQL = "UPDATE tabella SET foto = '"& trim(foto) strSQL = strSQL & "', formato = '"& trim(formato) strSQL = strSQL & "', formatos = '"& trim(formatos) strSQL = strSQL & "', supporto = '"& trim(supporto) strSQL = strSQL & "', quantita = '"& trim(quantita) strSQL = strSQL & "', prezzo = '"& trim(prezzo) &"' WHERE id=" & ArrayId(i)
codice:Microsoft VBScript runtime error '800a0009' Subscript out of range: 'i'
Non saprei proprio dove è l'errore, ho fatto un debug dell'arrayId se stampa correttamente è ho : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 che sarebbero l'id recuperati dalla pagina precedente.
Potete aiutarmi?
Grazie
G.

Rispondi quotando