I have a table with 28 fields. The first four are: Date, Product, Shift, Waste Type. The next 24 are unique 'waste points'. Each date/shift can have any number in any of those 24 fields. So yesterday (for example) we could have had 500 KG on waste point 10, 20 on waste point 16, and 400 on waste point 20.
I am going to code a form that will allow users to select against a range of the first four criteria (not a problem), and then show the resultant numbers as a percentage for each waste point. This will require me to total all 24 waste point fields in each record to be the denominator. So in the example above, I need an easy way to say the denominator is 920. Keeping in mind I can have anywhere from 0 to 24 fields that have a value in them and need to be added to the total.
Is there an easy way to do this? Or do I need to create a custom field that says something like: [point1]+[point2]+[point3]+[point4] ... up to 24? That would be a very long custom field.
Any help would be greatly appreciated.