I am a novice, so I'm sure (hoping) someone can help.
I have 5 text boxes that have count totals and I used the code below:
=DCount("*", "TableName", "[Gender]='male' AND ([Age] >= 21 OR [Age] <= 30)")
This code works fine.
What I need is a text box that will come up with the sum of all five boxes. So for example, I have 5 count text boxes that have the numbers (2,4,3,5,4) in them. I need one text box that will sum the total of all 5 count text boxes (20).
Can someone show me the code for doing that??
Any help would be appreciated.