I have encountered a problem and i don't know how to solve it. A little help maybe ... please.
I have a Querry that is named "Average" which contains the fields MARK1, MARK2, MARK3, MARK4, MARK5 and the field AVGMARK. I want to calculate the average between MARK1, MARK2, ..., MARK5 in AVGMARK, but these fields can all be populated (5) or 4, or 3, and so on, but minimum 1 field (at least one field must be populated).
Thank you very much for your help!
It worked great.
I have one more question. After applying the function you indicated I created a querry called " Scores" with the following structure:
POINTS NAME OPTION1 OPTION2 OPTION3
8 John 2 1 3
9 Robert 1 2 3
10 Willy 3 1 2
7 Wu 1 2 3
and so on
POINTS NAME 1 2 3
8 John OPTION2 OPTION1 OPTION3
9 Robert OPTION1 OPTION2 OPTION3
10 Willy OPTION2 OPTION3 OPTION1
7 Wu OPTION1 OPTION2 OPTION3
and so on
where OPTION1, OPTION2 and OPTION3 with values 1, 2, 3 are the preferences of the candidates for the options with interest value of 1, 2 or 3.
OPT1 has a maximum of X winners
OPT2 has a maximum of Y winners
OPT3 has a maximum of Z winners
I want to order the candidate in the following way:
Each candidate must be tested separately according to the score obtained and expressed choices, if it can occupy a place in the first option is taken, if in that option there are no longer places it must be tested if he can occupy a place on the second option, if there are places on this option he will be assigned to this option, and if there aren't any places it must be tested if he can occupy a place in the third.
Just proceed with the next candidate and repeat the operations from the first option.