Hi,
I'm tearing my hair out over this problem. I'm working with Access 2000, and I have a report, based on a query, which contains a subreport in order to show a subset of the main query's data. I can set a text box in my main report to show the values I want from the subreport using the format:
=[subGenderCount].Report!txtYearTotal
However, when I set the subreport's Visible property to 'No' the text box returns an incorrect value. Similarly, when I set the group header section containing the sub to not visible, the same probelm occurs.
When I put the subreport in the same section as the text box, an incorrect value is returned.
In all cases I can see that the subreport is properly linked, and is returning the correct values, it's just when it is hidden the 'linked' text box is thrown out.
Can anyone shed any light on this?
Many thanks,
CJA
I'm tearing my hair out over this problem. I'm working with Access 2000, and I have a report, based on a query, which contains a subreport in order to show a subset of the main query's data. I can set a text box in my main report to show the values I want from the subreport using the format:
=[subGenderCount].Report!txtYearTotal
However, when I set the subreport's Visible property to 'No' the text box returns an incorrect value. Similarly, when I set the group header section containing the sub to not visible, the same probelm occurs.
When I put the subreport in the same section as the text box, an incorrect value is returned.
In all cases I can see that the subreport is properly linked, and is returning the correct values, it's just when it is hidden the 'linked' text box is thrown out.
Can anyone shed any light on this?
Many thanks,
CJA