WatsonDyar
Registered User.
- Local time
- Today, 17:14
- Joined
- Aug 12, 2014
- Messages
- 50
I have a report with continuous class records. I want it to list the number of students current registered for that class.
The query lq_StudentCount is a totals query with the Class_ID (from the Class table) and Student_ID (from the Students table). The Class_ID is grouped, the Student_ID is counted. Both ID field contain numbers.
I have this in the text control field:
=Nz(DLookUp([StudentCount],"lq_MRTT_StudentCount","[ClassID]=" & [Reports]![r_MRTT_ClassSchedule]![Class_ID]),0)
I can't get this to work!:banghead:
The query lq_StudentCount is a totals query with the Class_ID (from the Class table) and Student_ID (from the Students table). The Class_ID is grouped, the Student_ID is counted. Both ID field contain numbers.
I have this in the text control field:
=Nz(DLookUp([StudentCount],"lq_MRTT_StudentCount","[ClassID]=" & [Reports]![r_MRTT_ClassSchedule]![Class_ID]),0)
I can't get this to work!:banghead: