nlaliberte
Programmer
I'm using Crystal XI.
I'm trying to use a variable to govern whether or not a group header appears on the next page with "(continued)" next to it. Basically the report is an activity log, with the activities being long strings that tend to run onto the next page. Our user would like the contacts name to appear again on the next page with the activity with "(continued)" next to it when this occurs.
What I have is a group for each activity, with the header set to repeat on each page. This works great but there is no "(continued)" next to it. So I created a simple variable that will be a 1 or a 0. I set it to 1 in Detail Section A;
shared numbervar mid_detail;
mid_detail := 1
And then have a Detail Section B in which it's set to 0 again;
shared numbervar mid_detail;
mid_detail := 0
My logic being that if a page starts and the variable is at 1 than an activity has wrapped to the new page and "(continued)" should appear. However when I put a debug object in the group header to show me what the variable is set to I find that it's always set to 0 no matter whether Detail Section B has run yet or not.
Does anyone know why these variables being set in the Detail Section are not having an effect on the variable's value in the Group Header? Any suggestions?
I'm trying to use a variable to govern whether or not a group header appears on the next page with "(continued)" next to it. Basically the report is an activity log, with the activities being long strings that tend to run onto the next page. Our user would like the contacts name to appear again on the next page with the activity with "(continued)" next to it when this occurs.
What I have is a group for each activity, with the header set to repeat on each page. This works great but there is no "(continued)" next to it. So I created a simple variable that will be a 1 or a 0. I set it to 1 in Detail Section A;
shared numbervar mid_detail;
mid_detail := 1
And then have a Detail Section B in which it's set to 0 again;
shared numbervar mid_detail;
mid_detail := 0
My logic being that if a page starts and the variable is at 1 than an activity has wrapped to the new page and "(continued)" should appear. However when I put a debug object in the group header to show me what the variable is set to I find that it's always set to 0 no matter whether Detail Section B has run yet or not.
Does anyone know why these variables being set in the Detail Section are not having an effect on the variable's value in the Group Header? Any suggestions?