G
Guest
Hello, all,
I have a report that shows the total number of records in a stored query by
putting a text box in the report and setting its control source to a field in
the query, such as
=Dcount("InmateId", "qryHU1AUpper")
I have about 50 of these on the report in the detail section and the form
takes forever to open("formatting page . . . press control + break to stop").
I am at a loss how to overcome this. I have created separate queries that
perform the counting task
SLELECT Count(InmateId) FROM tblInmates etc. . .
but the report wizard (though it says I can choose from more that one table
or query) won't let me use them. ("You have chosen fields from record sources
which the wizard can't connect.") I then tried union-ing all of the count
queries together into one and that works except the duplicates are removed -
not what I want. The DISTINCT keyword has no effect.
I feel I'm missing the easier solution here. I need to create a report that
displays the count of records from multiple queries, but doesn't take 30
seconds to open. Thanx to any who can help.
Ripper
I have a report that shows the total number of records in a stored query by
putting a text box in the report and setting its control source to a field in
the query, such as
=Dcount("InmateId", "qryHU1AUpper")
I have about 50 of these on the report in the detail section and the form
takes forever to open("formatting page . . . press control + break to stop").
I am at a loss how to overcome this. I have created separate queries that
perform the counting task
SLELECT Count(InmateId) FROM tblInmates etc. . .
but the report wizard (though it says I can choose from more that one table
or query) won't let me use them. ("You have chosen fields from record sources
which the wizard can't connect.") I then tried union-ing all of the count
queries together into one and that works except the duplicates are removed -
not what I want. The DISTINCT keyword has no effect.
I feel I'm missing the easier solution here. I need to create a report that
displays the count of records from multiple queries, but doesn't take 30
seconds to open. Thanx to any who can help.
Ripper