>That would work, however the text is question is user entered input that will appear on a web page. The '?' is an integral part of the text and needs to be preserved. I have found a work around using Postgres syntax to avoid the problem but there should be some native way in VFP to do this.
The variable holding the text can hold any text, including any punctuation. Just try
myvar="Any? Text! <tags> $# ... any?thing, includ'n apostrophes"
sqlexec(handle, "update ... set myfield=?myvar where...")
and it should swallow it without even blinking.