I tried them, and at first glance it seems like they are working, but then I checked California, where I know there are several company matches under multiple California cities and none of them show. When I remove the suppression formula and page through the report, I see the companies under...
Sorry about that. The one that is returning FALSE is:
whileprintingrecords;
shared stringvar city;
instr(city, {tblCityState.City}) = 0
And this is the one that is returning TRUE:
//{@whileprintingrecords;
shared stringvar city;
{JCCityState.City} in city
Yep, the subreport is linked as you said.
The subreport is in the GH2b section.
I have a screenshot of the design attached.http://i.imgur.com/0Czju.jpg
Ok, sorry bout that.
I changed the formula back to the original, and removed the suppression formulas and all cities display "True" even if the subreport is blank.
I did the "can grow" and now can see the cities. I also created the test formula with the following code and put it into the GH2:
whileprintingrecords;
shared stringvar city;
instr(city,{tblCityState.City}) = 0
This didn't seem right to me because only 2 of the states displayed cities under...
Sorry about that. Here are the formulas with my table names.
Subreport Details formula:
whileprintingrecords;
shared numbervar st;
shared stringvar city;
if isnull({tblCoSub.Subsidiaries}) or not({?Pm-tblCityState.State} in {tblCoSub.Subsidiaries}) then
st := st
else
st := st + 1;
if...
Ok, inserted a section below my Group Header 1 so I would get Group Header 1a and 1b. I moved the Group #1 Name down to GH1b. Then I inserted my subreport into GH1a. I setup the links to State and City. Then I edited the subreport and removed the city record selection and changed the state...
OMG, you are the king! Sorry it took me a while to give this a try, but it worked perfectly. I didn't see that I was doing and "equals" instead of an "in" in my record selection formula.
One more question. Is there a way to not display the city and/or state group sections if there is no...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.