Salve,
dalla pagina seguente ottengo questo messaggio di errore... anche se mi convince poco che sia corrispondente all'errore segnalato...
Microsoft OLE DB Provider for SQL Server error '80004005'
Conversion failed when converting date and/or time from character string.
/RegistraOrdine.asp, line 38
la riga 38 è rs.Updatecodice:sql = "SELECT * FROM OrdiniElenco" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, Connection ,3,3 ' Assegno un codice all'ordine sql_max = "SELECT MAX(idOrdine) as UltimoOrdine FROM OrdiniElenco" Set rs_max = Server.CreateObject("ADODB.Recordset") rs_max.Open sql_max, Connection ,3,3 if trim(" " & rs_max("UltimoOrdine")) <> "" then IdOrdineAttuale = CInt(rs_max("UltimoOrdine")) + 1 else IdOrdineAttuale = 1 end if response.write IdOrdineAttuale oggi = date() ggm = Left(giorno, 2) annom = Right(giorno, 4) mmm = Mid(giorno, 4, 2) consegna = request("spedizione") Dim richiesta(100) for R = 1 to 100 if CInt(request("var" & R)) > 0 then richiesta(R) = CInt(request("var" & R)) rs.AddNew rs("idUtente") = session("id") rs("idOrdine") = IdOrdineAttuale rs("idArticolo") = R rs("Quantita") = CInt(request("var" & R)) rs("Data") = annom & "-" & mmm & "-" & ggm rs("Consegna") = CInt(consegna) rs("stato") = 1 rs.Update end if next
Idee?
Grazie
Ciao
Fabio

Rispondi quotando
