In order to run the query you must use macro substitution. Which uses the &. This would go as follows.
SQLSta = "SELECT ..."
&SQLSta
This should run the query. I hope this helps.
Stephen Kuhn
Prism Network, Inc.
System Developer
At last we can reveal ourselves to the Jedi.
At last we will have revenge.
-Darth Maul