total check box

S

Sal

have a list of invitees to an event, the first column is a check box -
"Registered"

at the end of report I'd like to show below the number of invitees I'd like
to show the total of attendees that are check (i.e. yes or true).

appreciate any help
 
M

Marshall Barton

Sal said:
have a list of invitees to an event, the first column is a check box -
"Registered"

at the end of report I'd like to show below the number of invitees I'd like
to show the total of attendees that are check (i.e. yes or true).


Total detail records (attendees)
=Count(*)

Number pf detail records with registered checked
=Sum(IIf(Registered, 1, 0))
or
=Abs(Sum(Registered))
or
=-Sum(Registered)
 
S

Sal

Marshall / Sal

=-Sum(Registered)

worked fine! thanks. However I've tried to make sums for other check boxes
(luncheon, reception and breakfast, which are in the query that the report is
based on but not in the report and I keep getting the same number as
Attendees?

any guidance is appreciated.
 
M

Marshall Barton

That could be a lot of things so I can't tell without seeing
a Copy/Paste of your query's SQL view.
 

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