In a particular shooting competition teams shoot for prizes (NH) or as “Honours Only” (HO). In my published prize list, I need to show the winners and second place, for the award of trophies, but also the HO teams if they either win the competition of come second.
An example of the final results sheet should look like this:
Nominal Winners Team A (HO) Total (e.g. 100)
Winners Team B (NH) Total (e.g. 99)
Nominal Second Place Team C (HO) Total (e.g. 98)
Second Place Team D (NH) Total (e.g. 97)
The report is based on a Union Query which selects the top 2, based on whether control “Honours Only” is true or false. This query produces between 2 and 4 results, depending on how many teams are shooting as HO.
The fields used in the report are:
"Team", "Total" (total score) and "Type" (“HO” or “NH”)
The report is sorted on "Total" which gives a "Position" between 1 and 4, with the highest scoring team being given position 4. If there are only three teams (i.e. only one shooting as “HO”, then the highest team is given position 3. If no teams are shooting as “HO”, the highest team is given position 2, with the second place team being given position 1.
In order to show which team is the winner of what (as above), I am trying to use a text box with a series of IIf statements which result in the text “Winners” etc. being displayed, but the permutations and combinations become impossible to work out.
There has to be an easier way but I can’t see it. If anyone can see a way of doing it, I would be most grateful.
Best Regards
John
An example of the final results sheet should look like this:
Nominal Winners Team A (HO) Total (e.g. 100)
Winners Team B (NH) Total (e.g. 99)
Nominal Second Place Team C (HO) Total (e.g. 98)
Second Place Team D (NH) Total (e.g. 97)
The report is based on a Union Query which selects the top 2, based on whether control “Honours Only” is true or false. This query produces between 2 and 4 results, depending on how many teams are shooting as HO.
The fields used in the report are:
"Team", "Total" (total score) and "Type" (“HO” or “NH”)
The report is sorted on "Total" which gives a "Position" between 1 and 4, with the highest scoring team being given position 4. If there are only three teams (i.e. only one shooting as “HO”, then the highest team is given position 3. If no teams are shooting as “HO”, the highest team is given position 2, with the second place team being given position 1.
In order to show which team is the winner of what (as above), I am trying to use a text box with a series of IIf statements which result in the text “Winners” etc. being displayed, but the permutations and combinations become impossible to work out.
There has to be an easier way but I can’t see it. If anyone can see a way of doing it, I would be most grateful.
Best Regards
John