Reputation: 75
SELECT
Field1, Field2, Field3
FROM
sometable
Hi, I need help in creating a parameter in SSRS.
When False it should only display where Field3 IS NOT NULL
and
When True it should display all records
Thanks!
Upvotes: 0
Views: 53
Reputation: 1142
You can change your query to something like this:
SELECT Field1, Field2, Field3
FROM sometable
WHERE (@param = TRUE) OR (Field3 IS NOT NULL)
Upvotes: 2