declare @var1 {type goes here} select @var1=N'{your VFP variable's content as converted string} select * from ... where ...somefield=@var1The parser seems to find the question mark somewhere in your SQL string and gets confused, trying to extract a variable from the characters immediately to the right of it. If it's a typical text, a question mark is followed by a space or a carriage return, which then means it just finds nothing.
update yourtable set somefield='{your text containing a question mark}'you can have a command like this:
update yourtable set somefield=?yourVariable(where your variable contains the value to be passed) and let Fox do the rest. The variable needs to be in scope when SqlExec() executes. Then VFP takes care of all the conversions for you.