I have a query set up with a list of records with check box fields, Text boxes and one text field with numbers.
I used this expression to get the sum total of [Text box with numbers] per total records by counting [Text Box A]
=Sum([Text Box with numbers])/Count([Text Box A])
80/21=3.81
Now I want the total of [Text box with numbers] per records with [Check Box A] checked.
24/6=4
I've tried the expression below and get 3.80 and not 4.
=IIf([Check Box A]=-1,(Sum([Text box with numbers]))/(Count([Text Box A])))
Hope this makes sense.
Any Help would be great
Thanks,
J
I used this expression to get the sum total of [Text box with numbers] per total records by counting [Text Box A]
=Sum([Text Box with numbers])/Count([Text Box A])
80/21=3.81
Now I want the total of [Text box with numbers] per records with [Check Box A] checked.
24/6=4
I've tried the expression below and get 3.80 and not 4.
=IIf([Check Box A]=-1,(Sum([Text box with numbers]))/(Count([Text Box A])))
Hope this makes sense.
Any Help would be great
Thanks,
J
Comment