The syntax error was a missing close bracket in FCriterion, making the filter contents:
select * from ContactMasterT where Not(Replace(LastName, chr(39), '')) IS NULL AND Replace(LastName, chr(39), '') LIKE '*August*'
... but the type mismatch error is back. If it is Replace that is choking...