I have now created my database and a form for viewing results; I am now looking into adding some automated updates.
I have done some basic on update function to update fields in the same record, but now I am looking to update a field in a different record with the sum of a field from 9 different records. So I am looking to do something like:-
If [Hole] = ‘OUT’ then
Gross = sum [Gross] – for all the same CouseID, PlayerID, TimeID and for holes 1-9
One more:-
If [Hole] = ‘Total’ then
Gross = ((Gross when [Hole] = ‘IN’) + (Gross when [Hole] = ‘OUT’))
This should only be done for the same CouseID, PlayerID, TimeID
From this I should be able to calculate all the other sums and automated calculations.
I have done some basic on update function to update fields in the same record, but now I am looking to update a field in a different record with the sum of a field from 9 different records. So I am looking to do something like:-
If [Hole] = ‘OUT’ then
Gross = sum [Gross] – for all the same CouseID, PlayerID, TimeID and for holes 1-9
One more:-
If [Hole] = ‘Total’ then
Gross = ((Gross when [Hole] = ‘IN’) + (Gross when [Hole] = ‘OUT’))
This should only be done for the same CouseID, PlayerID, TimeID
From this I should be able to calculate all the other sums and automated calculations.