The problem with this is that my SQL query is HUGE. It looks something like this:
So basically, the query is selected based on the options the user selects on the Form.if (@locationID = 0) BEGIN
if (@userID = 0) BEGIN
if (@deptID = 0) BEGIN
'query here
END ELSE BEGIN
'query here
END
END ELSE BEGIN
'query here
END
END ELSE BEGIN
'query here
END
What I want to do is create a general query and then filter it within the Report; like the way you can filter a DataView by using the RowFilter property.
Thanks!