[SOLVED] Use Global Variable in SQL statement

I have a form and I’m saving 2 values in session variables by saying Save Variable on the field and giving it a variable name.

I have a button that runs a grid application and I want to use those variables in my sql statement for the grid.

What is the best way to do this?

Thanks

Just set the selected fields into a [global] and use this [global] in your sql.

Thanks, that worked.