R
Richard Harison
I am designing a report in which one field is an option group-- to choose
between "Rural" & "Urban. (The field in the underlying table holds a value
of 1 or 2, as the user selects "Rural" or "Urban" on the form bound to the
table). There is one grouping field--"County"
There is a control in the Detail section that refers to the Rural/Urban
option group.
I want to create 2 subtotals for the group, one to total each time 1
(Rural) was found, and the other to total each time 2 (Urban) was found.
I created two controls with sources as an IIF function. The first box
registers a 1 every time the Control Source (the option group Rural/Urban)
is 1, otherwise a zero. I named it IsRural. The second box does the
opposite. It registers a 1 when it finds a 2, otherwise zero. It works
fine.
The problem is when I put a text box in the Group footer at set the control
source to =Sum([IsRural]), I get a parameter box, indicating that Access
doesn't recognize my control name! This should work, but it doesn't What am
I doing wrong?
Thanks
between "Rural" & "Urban. (The field in the underlying table holds a value
of 1 or 2, as the user selects "Rural" or "Urban" on the form bound to the
table). There is one grouping field--"County"
There is a control in the Detail section that refers to the Rural/Urban
option group.
I want to create 2 subtotals for the group, one to total each time 1
(Rural) was found, and the other to total each time 2 (Urban) was found.
I created two controls with sources as an IIF function. The first box
registers a 1 every time the Control Source (the option group Rural/Urban)
is 1, otherwise a zero. I named it IsRural. The second box does the
opposite. It registers a 1 when it finds a 2, otherwise zero. It works
fine.
The problem is when I put a text box in the Group footer at set the control
source to =Sum([IsRural]), I get a parameter box, indicating that Access
doesn't recognize my control name! This should work, but it doesn't What am
I doing wrong?
Thanks