cafirlanda
New member
- Local time
- Today, 16:31
- Joined
- Apr 6, 2005
- Messages
- 5
I work for a train maintenance company and to keep track of the defects we use access. Our data is stored in tables (eg unit1) and each defect is assigned a fault code (eg TRD.99). These codes are then used to report to our customer where errors our occuring on the trains.
There are 17 categories of code defined by the 3 letters at the start and the specific problem is stated by the digits. I need a method of tabulating the codes by unit number and a total given in another column. To do this I need a code to count the number of times each three letter code appears in the column of each units table and place the value in the corresponding column in the overview table. I then need a code to add up the total faults for each unit like the sum function in an excel spreadsheet. The final table should look something like this
Unit No BOG TRD
3001 0 21
3002 0 17
3003 1 17
3004 0 4
3005 0 5
3006 1 18
3007 0 3
3008 1 7
3009 0 4
3011 0 0
3012 0 2
TOTAL 3 98
Any help will be greatly appreciated
There are 17 categories of code defined by the 3 letters at the start and the specific problem is stated by the digits. I need a method of tabulating the codes by unit number and a total given in another column. To do this I need a code to count the number of times each three letter code appears in the column of each units table and place the value in the corresponding column in the overview table. I then need a code to add up the total faults for each unit like the sum function in an excel spreadsheet. The final table should look something like this
Unit No BOG TRD
3001 0 21
3002 0 17
3003 1 17
3004 0 4
3005 0 5
3006 1 18
3007 0 3
3008 1 7
3009 0 4
3011 0 0
3012 0 2
TOTAL 3 98
Any help will be greatly appreciated