djsmith2005
Registered User.
- Local time
- Today, 15:13
- Joined
- Sep 6, 2012
- Messages
- 15
I am trying to use DCount to count the number of records (speakers) for each session. Not being very savvy with DCount, I copied code that I had working for another instance of needing to count the number of records.
My query has three fields
Query used: Web/PrintReport_qry
Session Id - number
Speaker - string
My output for SpeakerCount is "#Error"
Your help is appreciated as I need to get this series of reports completed this morning.
My query has three fields
Query used: Web/PrintReport_qry
Session Id - number
Speaker - string
Code:
SpeakerCount: DCount("*","Web/PrintReport_qry","[Session ID]='" & [Session ID] & "' And [Speaker]<" & [Speaker])+1
Your help is appreciated as I need to get this series of reports completed this morning.