QueriesReports and record counts
Hi All,
I am currently trying to produce a database for a Drugs and Alcohol
Rehab centre I am working for.
I have tables that hold data as follows:
Table "Referrals" holds personal data, Name, Age, DOB, Gender and so on.
Table "Stage" holds data which shows what stage in the programme the client on on.
Example: Stage 1,2,3,4,5 or 6.
I have queries that produce the required results, example:
Query 1 "currentFemaleClients" Field "Gender" Criteria "Female"
This produces all the current clients that have a gender of "Female".
I have a Form "AllCurrentFemaleClients" based on the Query "currentFemaleClients". On the
form I have a unbound textbox which has the Controlsource set to "=Count(*). This shows
the number of client with a gender of "Female".
Query 2 "stageone" Field "stage" Criteria "1"
This produces all the client who are on stage "1" of the programme.
I have a form "stageoneclients" which has a unbound textbox with the Controlsource
set to "=count(*). This show the number of client who are on stage "1".
There a number of simular queries and forms all based on the same layout with
different criteria.
I have produced a form containing all the sub forms to show the overall current
position of the Rehab programme.
My question is, how do I produce the same data in a report, using the queries
as outlined above.
If anyone can advise please.
Kind regards to you all.
Keep safe and well.
Dereck
Hi All,
I am currently trying to produce a database for a Drugs and Alcohol
Rehab centre I am working for.
I have tables that hold data as follows:
Table "Referrals" holds personal data, Name, Age, DOB, Gender and so on.
Table "Stage" holds data which shows what stage in the programme the client on on.
Example: Stage 1,2,3,4,5 or 6.
I have queries that produce the required results, example:
Query 1 "currentFemaleClients" Field "Gender" Criteria "Female"
This produces all the current clients that have a gender of "Female".
I have a Form "AllCurrentFemaleClients" based on the Query "currentFemaleClients". On the
form I have a unbound textbox which has the Controlsource set to "=Count(*). This shows
the number of client with a gender of "Female".
Query 2 "stageone" Field "stage" Criteria "1"
This produces all the client who are on stage "1" of the programme.
I have a form "stageoneclients" which has a unbound textbox with the Controlsource
set to "=count(*). This show the number of client who are on stage "1".
There a number of simular queries and forms all based on the same layout with
different criteria.
I have produced a form containing all the sub forms to show the overall current
position of the Rehab programme.
My question is, how do I produce the same data in a report, using the queries
as outlined above.
If anyone can advise please.
Kind regards to you all.
Keep safe and well.
Dereck