>I'm glad you got it to work. It's unfortunate that VFP doesn't support derived tables so you could use the same queries for both backends.
Yes, for that particular one, I need to have both. So, I check the status of This.lClientServer before generating the SQL syntax.