G
Guest
Hoping that there's an easy answer for my dilemma (short of entirely
redesigning my database!!)
I have a main report to summarize data from several medical clinics, which
runs off a form which prompts for the clinic's name to summarize (POS = point
of service). so, the form generates the filter for the main report like
this:
(POS = Forms![POS Selection Dialog]!SelectPOS)
this works fine, and prints the appropriate POS name into the main report.
now, my problem is that a lot of the subreports are based on series of
queries that generate counts of data, for instance, a count of the number of
males and females where the query looks like this:
SELECT Count(*) AS [Count Of Gender], BaselinePatientData.Gender
FROM BaselinePatientData
GROUP BY BaselinePatientData.Gender
HAVING (((BaselinePatientData.Gender) Is Not Null));
the master and child links for this subreport is the field "Gender"
however, the behavior of this subreport (and many of the others) is quite
erratic. with one of the POS selected, i only get the two "Not Documented"
values reported in the gender subreport, and for the other 3 POS, i get only
the females reported (and it's the total number of females across all POS,
not for the POS selected).
i tried adding in the UID for the gender and the BaselinePatientData tables,
but that messed up the gender report altogether, and i didn't get the result
i wanted.
is there a simple way to filter the subreport so that i can get the summary
data that i need only for the POS selected?
thanks in advance,
janaki
redesigning my database!!)
I have a main report to summarize data from several medical clinics, which
runs off a form which prompts for the clinic's name to summarize (POS = point
of service). so, the form generates the filter for the main report like
this:
(POS = Forms![POS Selection Dialog]!SelectPOS)
this works fine, and prints the appropriate POS name into the main report.
now, my problem is that a lot of the subreports are based on series of
queries that generate counts of data, for instance, a count of the number of
males and females where the query looks like this:
SELECT Count(*) AS [Count Of Gender], BaselinePatientData.Gender
FROM BaselinePatientData
GROUP BY BaselinePatientData.Gender
HAVING (((BaselinePatientData.Gender) Is Not Null));
the master and child links for this subreport is the field "Gender"
however, the behavior of this subreport (and many of the others) is quite
erratic. with one of the POS selected, i only get the two "Not Documented"
values reported in the gender subreport, and for the other 3 POS, i get only
the females reported (and it's the total number of females across all POS,
not for the POS selected).
i tried adding in the UID for the gender and the BaselinePatientData tables,
but that messed up the gender report altogether, and i didn't get the result
i wanted.
is there a simple way to filter the subreport so that i can get the summary
data that i need only for the POS selected?
thanks in advance,
janaki