I've got a table [tblClients] and another table [tblClientVisits] linked to the client table by a foreign key [ClientNumber]
In the [tblClientVisits] table I've got a large number of Yes/No Question fields. I'm selecting groups of Clients in a query by [Gender] and [VisitDate] and so a Client may have none, one or many visits in the period.
I'm trying to find out how many Unique Male clients and Female clients answered Yes to each question. Whether or not they answered yes once or five times on single or multiple visits is not important. As there are quite a few questions I'm not wanting to set up a query for each of them. I've got a report based on a query that counts how many times each Yes/No was ticked, but was thinking that it may be better to do the count of unique Clients for each of these within a report.
In the report, I think I'd try to get something like;
DCount("[MyTable]![MyYesNoField]",[MyTable]","Something here to count unique client numbers that answered yes to the question")
but I am not sure of the code to do the last bit!
How can I achieve this aim?
tx
In the [tblClientVisits] table I've got a large number of Yes/No Question fields. I'm selecting groups of Clients in a query by [Gender] and [VisitDate] and so a Client may have none, one or many visits in the period.
I'm trying to find out how many Unique Male clients and Female clients answered Yes to each question. Whether or not they answered yes once or five times on single or multiple visits is not important. As there are quite a few questions I'm not wanting to set up a query for each of them. I've got a report based on a query that counts how many times each Yes/No was ticked, but was thinking that it may be better to do the count of unique Clients for each of these within a report.
In the report, I think I'd try to get something like;
DCount("[MyTable]![MyYesNoField]",[MyTable]","Something here to count unique client numbers that answered yes to the question")
but I am not sure of the code to do the last bit!
How can I achieve this aim?
tx