Total only specific records on a continuous form

S

str8trini

I am trying to add a total to the form footer on a continuous form that will
only total the records marked with a check box field. Is there a way to
specify this in the control source on the total field. For example, I have 4
records displayed on my form and 3 are marked. I only want to total the
value for the 3 marked records in my total line.
 
F

fredg

I am trying to add a total to the form footer on a continuous form that will
only total the records marked with a check box field. Is there a way to
specify this in the control source on the total field. For example, I have 4
records displayed on my form and 3 are marked. I only want to total the
value for the 3 marked records in my total line.

Using an Unbound control:

=Sum(IIf([CheckBox] = -1,[FieldToBeSummed],0))
 
S

str8trini

Perfect. Thank you so much!!!

fredg said:
I am trying to add a total to the form footer on a continuous form that will
only total the records marked with a check box field. Is there a way to
specify this in the control source on the total field. For example, I have 4
records displayed on my form and 3 are marked. I only want to total the
value for the 3 marked records in my total line.

Using an Unbound control:

=Sum(IIf([CheckBox] = -1,[FieldToBeSummed],0))

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top