B
Barry Skidmore
tbl_Volunteers
--------------- 1
| VolunteerID |--- tbl_Hours
| Vol_Name | | --------------
--------------- | many | HoursID |
|------|-> ID |
| Vol_Date |
| Num_Hours |
|-------------|
Above indicates the relationship between two tables in a database
that keeps track of the number of hours a volunteer puts in on
various days they volunteer. Vol_Date is the date they volunteer
and Num_Hours is the number of hours they put in on that date.
I have no problem summing the number of hours that all volunteers
put in between a given beginning and ending date. However, what
I am unable to determine is the total number of volunteers that
put in time between those same dates.
If I set up the following query to try to determine the number
of volunteers, it counts each VolunteerID more than once, based
on the number of times each person volunteered.
Instead, I want to only count each volunteer once, irrespective
of how many times they happen to volunteer during a given period.
Query:
Field: Num_Vol: VolunteerID Vol_Date
Table: tbl_Volunteers tbl_Hours
Total: Count Where
Sort:
Show: X X
Criteria: between [begin] and [end]
Thanks,
Barry
--------------- 1
| VolunteerID |--- tbl_Hours
| Vol_Name | | --------------
--------------- | many | HoursID |
|------|-> ID |
| Vol_Date |
| Num_Hours |
|-------------|
Above indicates the relationship between two tables in a database
that keeps track of the number of hours a volunteer puts in on
various days they volunteer. Vol_Date is the date they volunteer
and Num_Hours is the number of hours they put in on that date.
I have no problem summing the number of hours that all volunteers
put in between a given beginning and ending date. However, what
I am unable to determine is the total number of volunteers that
put in time between those same dates.
If I set up the following query to try to determine the number
of volunteers, it counts each VolunteerID more than once, based
on the number of times each person volunteered.
Instead, I want to only count each volunteer once, irrespective
of how many times they happen to volunteer during a given period.
Query:
Field: Num_Vol: VolunteerID Vol_Date
Table: tbl_Volunteers tbl_Hours
Total: Count Where
Sort:
Show: X X
Criteria: between [begin] and [end]
Thanks,
Barry