L
LeetFade
Hello everyone..
I've been struggling with this issue for a while now and have yet to find a
resolve. I have scowered the forums and have found what seemed to be
solutions, yet they didn't work for my scenario. I'm hoping someone can help.
Essentially, I have an Access project. I have a primary report
(rptEmpScoreCard). In that report is a set of 3 subreports -- Split Reports --
(rptEmpScoreCard_Split7, rptEmpScoreCard_Split10, rptEmpScoreCard_Split13).
In each one of those subreports lies a series of 5 more subreports -- Metric
Report -- which are reused and filtered based on the split (each of these
subreports contains data based on a metric with which we're judging the
agent's productivity on). Each subreport has it's own stored procedure built.
The Metric Reports know which data to pull by a hidden text box on each Split
Report that signifies which split it is, and that populates a parameter in
the stored procedure.
Now, the fun part. This all works well except for when one of the splits has
no data. I have the "Can Grow" and "Can Shrink" parameters set on all of the
reports. However, if one of the reports returns no data, it will hide the
detail section where the Metric Reports are, but it retains the area that
they would normally occupy. This keeps the following Split Report from moving
up and filling in that dead space.
I have tried the me.rptsub1.report.visible = Me.rptsub1.report.hasdata and
every possible variation of that which you could possibly think of, but I get
the same result. I CAN hide the data, but it still occupies the space. I have
tried forcing the detail height to 0 and it does nothing. I've put in a
message box to tell me what it reads as the height and I get something like
1520. This is after forcefully setting the height to 0. When I try from the
main report's detail on format to view the subreport and the hasdata (i.e. Me.
sbrptEmpScoreCard_Split7.report.visible = Me.sbrptEmpScoreCard_Split7.Report.
HasData) it hides everything. When I step through the code it says that the
subreport is unbound (gives a code of 1).
Any suggestions would be GREATLY appreciated. I also apologize for the length
of the post. <.<
I've been struggling with this issue for a while now and have yet to find a
resolve. I have scowered the forums and have found what seemed to be
solutions, yet they didn't work for my scenario. I'm hoping someone can help.
Essentially, I have an Access project. I have a primary report
(rptEmpScoreCard). In that report is a set of 3 subreports -- Split Reports --
(rptEmpScoreCard_Split7, rptEmpScoreCard_Split10, rptEmpScoreCard_Split13).
In each one of those subreports lies a series of 5 more subreports -- Metric
Report -- which are reused and filtered based on the split (each of these
subreports contains data based on a metric with which we're judging the
agent's productivity on). Each subreport has it's own stored procedure built.
The Metric Reports know which data to pull by a hidden text box on each Split
Report that signifies which split it is, and that populates a parameter in
the stored procedure.
Now, the fun part. This all works well except for when one of the splits has
no data. I have the "Can Grow" and "Can Shrink" parameters set on all of the
reports. However, if one of the reports returns no data, it will hide the
detail section where the Metric Reports are, but it retains the area that
they would normally occupy. This keeps the following Split Report from moving
up and filling in that dead space.
I have tried the me.rptsub1.report.visible = Me.rptsub1.report.hasdata and
every possible variation of that which you could possibly think of, but I get
the same result. I CAN hide the data, but it still occupies the space. I have
tried forcing the detail height to 0 and it does nothing. I've put in a
message box to tell me what it reads as the height and I get something like
1520. This is after forcefully setting the height to 0. When I try from the
main report's detail on format to view the subreport and the hasdata (i.e. Me.
sbrptEmpScoreCard_Split7.report.visible = Me.sbrptEmpScoreCard_Split7.Report.
HasData) it hides everything. When I step through the code it says that the
subreport is unbound (gives a code of 1).
Any suggestions would be GREATLY appreciated. I also apologize for the length
of the post. <.<