Hi,
I'm trying to update multiple fields using the UPDATE function but cannot get it to work.
strSQL = "UPDATE Estimates SET [Project Name]= '"
strSQL = strSQL & item.Subject
'strSQL = strSQL & "','"[Location]= '"
'strSQL = strSQL & item.Location
strSQL = strSQL & "'WHERE [EstimateID] = " & item.ID
conDB.Execute strSQL
The above command successfully updates the Project Name but when I take the comment off lines 3 & 4, it will not update the Location along with the Project Name.
All these "s and 's are confusing. My goal is to have it to update multiple fields.
TIA
I'm trying to update multiple fields using the UPDATE function but cannot get it to work.
strSQL = "UPDATE Estimates SET [Project Name]= '"
strSQL = strSQL & item.Subject
'strSQL = strSQL & "','"[Location]= '"
'strSQL = strSQL & item.Location
strSQL = strSQL & "'WHERE [EstimateID] = " & item.ID
conDB.Execute strSQL
The above command successfully updates the Project Name but when I take the comment off lines 3 & 4, it will not update the Location along with the Project Name.
All these "s and 's are confusing. My goal is to have it to update multiple fields.
TIA