> >bl = "'56230','62217'" >testString = "Update webprddt7.resmngta7 Set attribval = '" + bl + "' Where attribname = 'HeadCou > >Try to double the quote, e.g.
bl = strtran(bl,['],['']) testString = "Update webprddt7.resmngta7 Set attribval = '" + bl + "' Where attribname = 'HeadCountBadgeExclusions'Also, if possible, use parameters instead of string concatenation to avoid this problem, e.g.
bl = "'56230','62217'" testString = "Update webprddt7.resmngta7 Set attribval =?m.bl Where attribname = 'HeadCountBadgeExclusions'