I'm having alot of difficulty with using the DCOUNT function within a report in my database. I am creating a sports league and the report in question is to show the league standings.
I need to display how many games a team has won/drawn/lost respectively. One of my queries is designed to assign points to a team in fixture and therefore is basically a huge list of all fixtures, the games within a fixture and the points assigned to each team (3 for a win, 1 for draw, 0 for loss). Very much like this:
From this query I am trying to use the following formula for Games Won in my report:
=DCount("[Points]","qryPoints","[Points] = 3")
This however does not in anyway relate to points per team and purely shows a running total of the occurences of "2" in the column.
How is it possible to have DCount work on a "Number of occurences per team" basis?
I need to display how many games a team has won/drawn/lost respectively. One of my queries is designed to assign points to a team in fixture and therefore is basically a huge list of all fixtures, the games within a fixture and the points assigned to each team (3 for a win, 1 for draw, 0 for loss). Very much like this:
Code:
Fixture | Game | Team | Points
------------------------------------
1 | 1 | T1 | 3
1 | 1 | T2 | 0
1 | 2 | T1 | 3
1 | 2 | T2 | 0
From this query I am trying to use the following formula for Games Won in my report:
=DCount("[Points]","qryPoints","[Points] = 3")
This however does not in anyway relate to points per team and purely shows a running total of the occurences of "2" in the column.
How is it possible to have DCount work on a "Number of occurences per team" basis?