YoDuck,
I would expect that if you make a query which includes all of your
existing queries, suitably joined on the PK field of the original table,
and then base your form or report on this query, it should produce the
goods. The Name and Control Source of the controls on the form/report
would need to be distinguished from each other, e.g.
[NameOfCountQuery].[CountOfField], or in the combining query, you could
give each column an alias, and use this in the form/report.
A simpler approach may be to drop the idea of a separate query for each
criteria, and do it all in the one query. This would involve making a
calculated field in the quey fro each criteria, something like this...
FredCount: Abs(Sum([Person]="Fred"))
(adapt according to the criteria which actually applies in your database)
A variation on this theme is to hide the detail section of the report,
and in the footer, put an unbound textbox for each item, and set its
Control Source to the equivalemt of...
=Abs(Sum([Person]="Fred"))
Please post back with more details, including examples, if you need more
specific help with this.
--
Steve Schapel, Microsoft Access MVP
I am trying to build a form/report which uses a different query for each
control. Each query works seperately, but when I try to Combine them I get a
#Name? error in each control. The queries are all count queries using the
same field in the same table with different criteria. Can anyone help??