Ciao a tutti,
spero ci sia ancora qualcuno che possa darmi una mano!
Allora il mio errore è il seguente:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same
Verificando la stringa dell'ISERT sul web ho:
INSERT INTO tbl_orders (order_ID, order_CustomerID, order_Tax, order_Shipping, order_Total, order_Status, order_ShipMeth_ID, order_Address1, order_Address2, order_City, order_Zip, order_Country, order_State, order_transactionID, order_Date, order_ShipName) VALUES ('110820URJXQKU1', '140758PMESMGPVK-07-11-92', 0, 17, 26,6, '1', 75, 'piazza Montessori 16', '', 'Crotone', '88900', 'IT', 'KR ', '326590450', #09/08/2005 11:13:20#,'Rossana Garena');
Mentre il codice dell'INSERT è:
query = "INSERT INTO tbl_orders " &_
"(order_ID, order_CustomerID, order_Tax, " &_
"order_Shipping, order_Total, order_Status, " &_
"order_ShipMeth_ID, order_Address1, order_Address2, " &_
"order_City, order_Zip, order_Country, " &_
"order_State, order_transactionID, order_Date, order_ShipName) " &_
"VALUES (" &_
"'" & orderID & "', " & "'" & strCustomerID & "', " & intTaxAmount & ", " &_
intShipTotal & ", " & intOrderTotal & ", " & "'" & OrderStatusID & "', " &_
intShipPref & ", " & "'" & rs("cst_ShpAddress1") & "', " & "'" & rs("cst_ShpAddress2") & "', " &_
"'" & rs("cst_ShpCity") & "', " & "'" & rs("cst_ShpZip") & "', " & "'" & rs("country_Code") & "', " &_
"'" & rs("stprv_Code") & "', " & "'" & transactionID & "', " & cwMakeSQLDate(Now(),True) & ",'" & rs("cst_ShpName") & "');"
Mi date una mano?
Grazie
![]()