T
Tim Shepherd
Good day,
I am trying to get some totals on a subform, which has the fields:
Goats (continuous subform), information on groups of goats observed during a
survey.
Survey Key (foreign key)
Quadrant (text, one of four compass points)
Number Adults (integer)
Number Young (integer)
Group Total (Adult + Young, from query)
What I want to show is a total for each quadrant in a survey and a grand
total for the survey. In the subform footer, in unbound text boxes, I am
able to get the survey total with a DSum and restricting it to Survey Key. I
cannot figure out how to get the totals for the quadrants. The DSums I have
for each quadrant are giving me grand totals for the quad (adding multiple
surveys) rather than restricted to one survey (example of DSum:
Nz(DSum(“[Goup_Total]â€, “qryGoatsâ€, “[Quadrant]=’NE’â€),0)). Can anyone
assist me with getting a sum based on two criteria (quadrant and survey key),
or a better way to get these values on the form? Using Access 2003.
Thank you in advance,
Tim
I am trying to get some totals on a subform, which has the fields:
Goats (continuous subform), information on groups of goats observed during a
survey.
Survey Key (foreign key)
Quadrant (text, one of four compass points)
Number Adults (integer)
Number Young (integer)
Group Total (Adult + Young, from query)
What I want to show is a total for each quadrant in a survey and a grand
total for the survey. In the subform footer, in unbound text boxes, I am
able to get the survey total with a DSum and restricting it to Survey Key. I
cannot figure out how to get the totals for the quadrants. The DSums I have
for each quadrant are giving me grand totals for the quad (adding multiple
surveys) rather than restricted to one survey (example of DSum:
Nz(DSum(“[Goup_Total]â€, “qryGoatsâ€, “[Quadrant]=’NE’â€),0)). Can anyone
assist me with getting a sum based on two criteria (quadrant and survey key),
or a better way to get these values on the form? Using Access 2003.
Thank you in advance,
Tim