nicolaasjan2005
Registered User.
- Local time
- Today, 09:57
- Joined
- Dec 29, 2004
- Messages
- 25
Hello All:
I'm tracking driver accidents and trying to generate a report for safe driving awards.
I have 2 tables I'm using for this. The first is the driver table which contains the key (employee number) driver names and the date they started work.
The second is the driving record table that is linked to the driver table via the employee number. This table contains three fields - the DriverID (linked); AccidentDate (self-explanatory); and Adjudication (whether the accident was a "preventable accident" or "no preventable accidents.")
I'm trying to create a query that will pull all drivers and will report each driver; the number of accidents (or no accidents) whatever the case may be - but here is where it gets a bit complicated.
Currently I'm only able to extract either the "preventable accidents" or "no preventable accidents".
I'm not able to get them both on one report... and secondly;
Where a driver has an accident in a calendar year, he is only disqualified from receiving an award for that year regardless of the number of accidents he has in that particular year.
Any suggestions?
I'm tracking driver accidents and trying to generate a report for safe driving awards.
I have 2 tables I'm using for this. The first is the driver table which contains the key (employee number) driver names and the date they started work.
The second is the driving record table that is linked to the driver table via the employee number. This table contains three fields - the DriverID (linked); AccidentDate (self-explanatory); and Adjudication (whether the accident was a "preventable accident" or "no preventable accidents.")
I'm trying to create a query that will pull all drivers and will report each driver; the number of accidents (or no accidents) whatever the case may be - but here is where it gets a bit complicated.
Currently I'm only able to extract either the "preventable accidents" or "no preventable accidents".
I'm not able to get them both on one report... and secondly;
Where a driver has an accident in a calendar year, he is only disqualified from receiving an award for that year regardless of the number of accidents he has in that particular year.
Any suggestions?