Double Criteria using the Dcount Function (to Rank Student Marks Per term per Class) (1 Viewer)

IngressBusiness

New member
Local time
Today, 04:03
Joined
Aug 31, 2022
Messages
10
Hullo Every on
I would like you to help me find a solution , am trying to rank Positions of students marks Scores per term,
the students are in different Classes so the positions must depend on their Classes Per term
am using this Code but its Not working out
Rank : DCount("Score ","ScoresT","[Pupilname] = '" & [Class] & "' And [Class] = '" & [Term] & "'")

Thanks
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 09:03
Joined
May 7, 2009
Messages
19,245
it is because you are concatenating wrong fields:

Rank : DSum("Score ","ScoresT","[Pupilname] = '" & [PupilName] & "' And [Class] = '" & [Class] & "' And [Term] = '" & [Term] & "'")
 

IngressBusiness

New member
Local time
Today, 04:03
Joined
Aug 31, 2022
Messages
10
So how should i approach it
Thanks
 

CJ_London

Super Moderator
Staff member
Local time
Today, 02:03
Joined
Feb 19, 2013
Messages
16,618
think you will find Arnel has provided the solution
 

Users who are viewing this thread

Top Bottom