JeepsR4Mud
Registered User.
- Local time
- Today, 04:43
- Joined
- Sep 23, 2002
- Messages
- 70
I have a table called Staff Injuries.
Each record is linked to a primary table through two fields: site and week, both of which are primary keys. (Thanks to someone for suggesting a compound primary key).
This is a secondary table because it can have more than one answer.
While the record details the incident, and I want to retain that information in a report, I'd like to sum the number of records per week (i.e. how many staff injuries did a side experience).
How can I do that?
Also, a couple of the fields are yes/no. How can I sum the number of yes answers? For example, the one field is workrelated (was the accident work related). I'd like to know how many of the accidents were directly related to job activities.
Thanks.
Gayle Ann
Each record is linked to a primary table through two fields: site and week, both of which are primary keys. (Thanks to someone for suggesting a compound primary key).
This is a secondary table because it can have more than one answer.
While the record details the incident, and I want to retain that information in a report, I'd like to sum the number of records per week (i.e. how many staff injuries did a side experience).
How can I do that?
Also, a couple of the fields are yes/no. How can I sum the number of yes answers? For example, the one field is workrelated (was the accident work related). I'd like to know how many of the accidents were directly related to job activities.
Thanks.
Gayle Ann