J
Jeff Harbin
I have a report that I am displaying data - some of which is calculated
when the report is opened. The report has 2 Groupings (Name and Level).
The Group Header for Name is empty but I have a calculated field and a
series of checkboxes in the Group Header for Level. I've got it set to
calculate the field upon the OnFormat Event for the Level Group Header.
I've also set the Visible property of the named checkboxes (Checkbox1,
Checkbox2, Checkbox3,...Checkbox10) to False. What I want to do is turn
the Visible property for some of the boxes to True based on the value of
the calculated field (ie., if the Calculated field value is 4 I want the
first 4 Checkboxes to be visible. If the value is 7, the first 7
checkboxes would be visible.)
So far the calculated field is updating correctly for each of the Level
Groups. However, I cannot get the proper number of Checkboxes to become
visible. It seems as though it works for the first page and then all
subsequent Level Groups have the same number of Checkboxes Visible as
the last group on the first page.
Here's the code that I'm using to set the Visible property to True. It
does turn some of them visible but not the correct number.
when the report is opened. The report has 2 Groupings (Name and Level).
The Group Header for Name is empty but I have a calculated field and a
series of checkboxes in the Group Header for Level. I've got it set to
calculate the field upon the OnFormat Event for the Level Group Header.
I've also set the Visible property of the named checkboxes (Checkbox1,
Checkbox2, Checkbox3,...Checkbox10) to False. What I want to do is turn
the Visible property for some of the boxes to True based on the value of
the calculated field (ie., if the Calculated field value is 4 I want the
first 4 Checkboxes to be visible. If the value is 7, the first 7
checkboxes would be visible.)
So far the calculated field is updating correctly for each of the Level
Groups. However, I cannot get the proper number of Checkboxes to become
visible. It seems as though it works for the first page and then all
subsequent Level Groups have the same number of Checkboxes Visible as
the last group on the first page.
Here's the code that I'm using to set the Visible property to True. It
does turn some of them visible but not the correct number.