bianx_07
09-29-2011, 08:23 AM
Hi there
I am trying to convert this line to a update query:
SELECT Purchasing.PurchaseNo, Purchasing.NoLicences, Purchasing.Cost, Purchasing.DateOrder, Purchasing.TypePayment, Purchasing.Supplier, Purchasing.DateRenewal, Purchasing.Company, Purchasing.Branch FROM Purchasing WHERE Purchasing.ID =116
This is my update query so far:
Set rsUpdatePurchase = dbUpdatePurchase.Execute("UPDATE Purchasing Version = " & intVersionID & ", PurchaseNo = " & strPurchase & ", NoLicences = " & strLicences & ", Cost = " & strCost & ", DateOrder = #" & strDateo & "#, TypePayment = '" & strPayment & "', Supplier = '" & strSupplier & "', DateRenewal = #" & strDater & "#, Company = " & intDivision & ", Branch = " & intCity & " WHERE (((ID)=" & intID &"));")
This update query gives me this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
/wspintranet/InformationTechnology/IT_Help_Desk_New/HelpDesk_AssetManagement/AssetManagement_Functions/Asset_Functions.asp, line 5327
All the help will be appreciated.
Thank you in advance.
I am trying to convert this line to a update query:
SELECT Purchasing.PurchaseNo, Purchasing.NoLicences, Purchasing.Cost, Purchasing.DateOrder, Purchasing.TypePayment, Purchasing.Supplier, Purchasing.DateRenewal, Purchasing.Company, Purchasing.Branch FROM Purchasing WHERE Purchasing.ID =116
This is my update query so far:
Set rsUpdatePurchase = dbUpdatePurchase.Execute("UPDATE Purchasing Version = " & intVersionID & ", PurchaseNo = " & strPurchase & ", NoLicences = " & strLicences & ", Cost = " & strCost & ", DateOrder = #" & strDateo & "#, TypePayment = '" & strPayment & "', Supplier = '" & strSupplier & "', DateRenewal = #" & strDater & "#, Company = " & intDivision & ", Branch = " & intCity & " WHERE (((ID)=" & intID &"));")
This update query gives me this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
/wspintranet/InformationTechnology/IT_Help_Desk_New/HelpDesk_AssetManagement/AssetManagement_Functions/Asset_Functions.asp, line 5327
All the help will be appreciated.
Thank you in advance.