A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

total check box



 
 
Thread Tools Display Modes
  #1  
Old August 4th, 2009, 09:17 PM posted to microsoft.public.access.reports
Sal
external usenet poster
 
Posts: 134
Default total check box

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
  #2  
Old August 4th, 2009, 09:35 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default total check box

Sal wrote:

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)

--
Marsh
MVP [MS Access]
  #3  
Old August 11th, 2009, 04:21 PM posted to microsoft.public.access.reports
Sal
external usenet poster
 
Posts: 134
Default total check box

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.


"Marshall Barton" wrote:

Sal wrote:

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)

--
Marsh
MVP [MS Access]

  #4  
Old August 22nd, 2009, 02:56 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default total check box

That could be a lot of things so I can't tell without seeing
a Copy/Paste of your query's SQL view.
--
Marsh
MVP [MS Access]


Sal wrote:
=-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?


"Marshall Barton" wrote:
Total detail records (attendees)
=Count(*)

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


Sal wrote:
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).

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.