Count of records IF...

N

Nathan

I have a form that contains records about each file.

In the form header, I have an unbound field that counts the total number of
records. It works fine.

What I want is ANOTHER field in the form header that also gives me a count
of all the records, but only if a certain checkbox on the form is checked
(and by extension, that particular field in the record is -1).

I'm sure this is panfully easy to do, but its escaping me right now.
 
O

Ofer Cohen

Create a text box in the Form Header and in it control source write

=Sum(IIf([YesNoFieldName]=True,1,0))
 
N

Nathan

Perfect, thanks!

Ofer Cohen said:
Create a text box in the Form Header and in it control source write

=Sum(IIf([YesNoFieldName]=True,1,0))

--
Good Luck
BS"D


Nathan said:
I have a form that contains records about each file.

In the form header, I have an unbound field that counts the total number of
records. It works fine.

What I want is ANOTHER field in the form header that also gives me a count
of all the records, but only if a certain checkbox on the form is checked
(and by extension, that particular field in the record is -1).

I'm sure this is panfully easy to do, but its escaping me right now.
 

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