On 7/17/07, Norm Garand <indianlakesolutions@rogers.com> wrote:
> /---------------
> IF $7 IS NOT NULL THEN
> AND f.id = pid.specific_location_cid AND f.long_desc = $7
> END IF
> ---------------/
How about:
AND f.ID = pid.specific_location_cid AND f.long_desc = COALESCE ($7, f.long_desc)