cjohnsonuk Posted June 16, 2015 Share Posted June 16, 2015 I'm writing a sub report to display statistics for a particular region but I also need to show the same statistics for every region EXCEPT that region.Eg if the region ID parameter is 30 and is added as a parameter the where statement is "where regionid = 30" but I'd also like to be able to provide the region ID as, for example "-30" to result in a where statement of "where regionid != 30"The plan is to use one sub report repeated multiple times in the main report (to keep it easier to update the design) but edit the dataset query for each sub report to show different regions.Or is it just going to be easier to create a "in region" and "out of region" sub report?... Chris Link to comment Share on other sites More sharing options...
hozawa Posted June 16, 2015 Share Posted June 16, 2015 Have you tried using $P! parameters to pass SQL to your subreport? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now