I'm afraid passthru query can't be parametized...
To make a query read only, simply use the DISTINCT predicate:
SELECT DISTINCT .....
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244