Hi m,
Code:
Replace(stringName, "'", "#8217")
Will do what you want, but, how is this causing problems in your code - if it's with dynamic query building, IMHO you're better of replacing the apostrophes by doubling them up before adding them to your queries...
Code:
Replace(stringName, "'", "''")
That way data stored in a database remains as it was initially submitted & you can query / export it etc without having to worry about reverting any changes you made.
HTH,
Chris