baggyboy26
Technical User
Hi I'm trying to count some values from a table to display in a textbox. This is the vba code i am using.
Me.Ctl4bP2.ControlSource = "=DCount(""[2007]![MathsSum1]"", ""[2007]"", ""[2007]![MathsSum1]='4b' AND [2008]![Year]='Year 6'"")"
It returns a value of 8 but when i count them myself there is only 5! I don't understand what i'm missing.
Thanks
Me.Ctl4bP2.ControlSource = "=DCount(""[2007]![MathsSum1]"", ""[2007]"", ""[2007]![MathsSum1]='4b' AND [2008]![Year]='Year 6'"")"
It returns a value of 8 but when i count them myself there is only 5! I don't understand what i'm missing.
Thanks