Shive -
Awesome. As you can tell, I am new to this.
Two follow up questions:
1. Is there a specific reason you assign first variable $L_Val, and then $P_INPUT?
Or can I directly do: $$myFileName = SELECT FileName FROM sysParams WHERE Client='X';
2. Can I substitute another variable inside the SQL statement, something like:
$$FileName = SELECT FileName FROM sysParams WHERE Client= $gClientID;
I think I might create a custom function, since I always will need a set of parameters to populate.