Hi,
I can't figure out what's wrong with this Dcount, which is the source for a text box in a report detail section - It just returns a zero for each detail row.
Text55 is another textbox in the report detail which contains a SiteID number.
If I take out the SiteID part of the criteria then a sensible (but not correct) value is returned so I don't think the issue is with the dates part of the criteria.
Can anyone explain what I've missed?
Thanks.
I can't figure out what's wrong with this Dcount, which is the source for a text box in a report detail section - It just returns a zero for each detail row.
Code:
=DCount("[ClientID]","tblPlace",("[Date] Between #" & (Date()-31) & "# And #" & Date() & "# )") And ("[SiteID]"=" & Me!Text55 & "))
Text55 is another textbox in the report detail which contains a SiteID number.
If I take out the SiteID part of the criteria then a sensible (but not correct) value is returned so I don't think the issue is with the dates part of the criteria.
Can anyone explain what I've missed?
Thanks.