G
Guest
Hi. I'm using the following in an unbound text box in a report and it always
produces a result of 1. What am I doing wrong?
It needs to get the value of field TotalPlacements (produced using Count in
the query) from qrySECCountOfPlacements, where the SchoolID (numeric) matches
the record being shown and where field Subject (Text) contains Citizenship.
=DLookUp("TotalPlacements","qrySECCountOfPlacements","[SchoolID] = " &
Nz([SchoolID],-99999) And "[Subject]='Citizenship'")
Thanks, JohnB
produces a result of 1. What am I doing wrong?
It needs to get the value of field TotalPlacements (produced using Count in
the query) from qrySECCountOfPlacements, where the SchoolID (numeric) matches
the record being shown and where field Subject (Text) contains Citizenship.
=DLookUp("TotalPlacements","qrySECCountOfPlacements","[SchoolID] = " &
Nz([SchoolID],-99999) And "[Subject]='Citizenship'")
Thanks, JohnB