Apostrophy in SQL string
Posted on 2002-04-05
My sql string includes a field in the WHERE clause which contains descriptions which include apostrophies. The apostrophies are causing errors because they are interpreted by sql as a termination. Apart from changing the structure and using an internal code in the WHERE clause, if I detect the apostrophies how can I then allow for them in the sql?
CurrentCustomer = "John's"
WHERE Account = '" & CurrentCustomer & "'