Matt_at_Target
Old Dog > New Trick
- Local time
- Today, 12:10
- Joined
- Mar 19, 2008
- Messages
- 9
In reading examples of using DCount I am coming away confused. I have a query that gives me the number of days for a location. On the report i want to count how many each location has over 2 so in the Control Source for my report I have the following
=DCount("Narr_Date","Narr_Days","Narr_Date > 2")
I have seen examples where it needed to be coded like this
=DCount("[Narr_Date]","Narr_Days","[Narr_Date] > 2")
and this
=DCount("[Narr_Date]","Narr_Days","[Narr_Date] > '2'")
it seems that I cannot get any of these to work correctly.
What am I missing?
=DCount("Narr_Date","Narr_Days","Narr_Date > 2")
I have seen examples where it needed to be coded like this
=DCount("[Narr_Date]","Narr_Days","[Narr_Date] > 2")
and this
=DCount("[Narr_Date]","Narr_Days","[Narr_Date] > '2'")
it seems that I cannot get any of these to work correctly.
What am I missing?