OH actually,the problem was in my syntax
SQL = "update tblExcelLocation set LotVerifiedDate = Now, LotVerifiedBy = '" & Replace(str3, " '", "''") & "',' " & Comments = Replace(str4, "'", "''") & "' WHERE LotVerified = true And ID = '" & Replace(str5, " '", "''") & "'"
i had to add '" &...