"Jake Marx" <msnews@longhead.com> wrote in message
news:OXcqPNIjEHA.1776@TK2MSFTNGP15.phx.gbl...
> Jake Marx wrote:
>> Hi all,
>>
>> How would I go about referring to the value of a TextBox within a
>> report? I have a TextBox that I named "txtCount", in which I use an
>> IIf expression to selectively count records when in a group. In the
>> footer of the container group, I'd like to refer to that TextBox's
>> value. I have no idea how to do it. I tried Fields!txtCount.Value
>> and that didn't work. I can't even refer to a TextBox's value in the
>> same detail line, so I must be missing something. Or is it not
>> possible to refer to another TextBox's value?
>
> OK - I found it online: ReportItems!txtCount.Value.
>
> I can refer to a TextBox in the same group using that syntax.
>
> However, what I'm looking to do is as follows:
>
> Group 1: Client
> Group 2 (inside Group 1): Status
> Details: Claims
>
> There are 4 statuses possible. What I'm trying to do is get the counts of
> each Status *in the footer of Group 1*. I can't think of a good way to do
> this. I can get the total Claims count within Group 1, and I can get
> counts
> of each Status within Group 2. But I can't figure out how to get a count
> of
> each Status type from Group 1. I need to do a calculation on the Client
> level based on those counts. I tried the following, which didn't work:
>
> 1) created 4 textboxes in the Group 2 footer to hold the counts for each
> status
> 2) tried summing the values of the textboxes created in step 1 from the
> Group 1 footer
>
> Any other ideas? Am I approaching this the wrong way?
>
> --
> Regards,
>
> Jake Marx
> MS MVP - Excel
>
www.longhead.com >
> [please keep replies in the newsgroup - email address unmonitored]
>