I have this code to update an Access table from a text file (this is actually vb script):
sqlStr = "UPDATE CustomersMain SET [RMName] = '" & trim(oRS("OfficerName")) & "' WHERE [CustomerID] = " & trim(oRS("CustomerId"))
Problem I have is when an OfficerName has a single quote in it, like O'BRIEN. how do I handle this?
Thanks!
Scott
sqlStr = "UPDATE CustomersMain SET [RMName] = '" & trim(oRS("OfficerName")) & "' WHERE [CustomerID] = " & trim(oRS("CustomerId"))
Problem I have is when an OfficerName has a single quote in it, like O'BRIEN. how do I handle this?
Thanks!
Scott