jzacharias
Registered User.
- Local time
- Yesterday, 18:21
- Joined
- Sep 13, 2010
- Messages
- 137
Would you have to specify the tbl_Deputy where the last, first name is stored or can I used the "Deputy_ID" from the tickets table?
Would you have to specify the tbl_Deputy where the last, first name is stored or can I used the "Deputy_ID" from the tickets table?
Ok. So i would replace both [officer] with Deputy_ID?
=DSum("Traffic", "tbl_Tickets", "[Ticket_Date] Between DateSerial(Year([COLOR=black]Date()[/COLOR])-1, 10, 1) And DateSerial(Year([COLOR=black]Date()[/COLOR]), 9, 30) [B][COLOR=red]And [Deputy_ID]=" & [Deputy_ID][/COLOR][/B]),0)")
Let me know if you got it
=Nz(DSum("Traffic","tbl_Tickets","[Ticket_Date] Between DateSerial(Year(Date())-1, 10, 1) And DateSerial(Year(Date()), 9, 30) And [Deputy_ID]=" & [Deputy_ID]),0)