Best way to refine report result inside the Report, not using the SQL query
Posted: Sun Nov 29, 2009 10:36 am
I have a report where the user can refine their report data based on three options.
The problem with this is that my SQL query is HUGE. It looks something like this:
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!
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!