Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / December 2005

Tip: Looking for answers? Try searching our database.

iif problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johnny Bright - 02 Dec 2005 20:16 GMT
Hi there,

In my report, my data looks something like this:

Group 1 M 10
           F  8
Group 2 M 12
           F  10
etc

I have tried to get a text box to add up just the Males and of course I will
need another one to add up just the females.
I have tried the following:
=IIf([Gender]="m",Sum([GenderCount]),0)
[Gender] of course is the middle column and [GenderCount] is the actual
number.  I end up getting a total for the entire group and not the specific
gender.  What am I doing wrong here or can someone suggest something else?
Thanks,

John
Signature

www.brightfuture.ca/bright
My email address can be found on my site.

fredg - 03 Dec 2005 01:13 GMT
> Hi there,
>
[quoted text clipped - 16 lines]
>
> John

=Sum(IIf([Gender]="m",[GenderCount],0)
=Sum(IIf([Gender]="F",[GenderCount],0)
Signature

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

Johnny Bright - 03 Dec 2005 23:58 GMT
Hey, thanks that was really helpful!

JR
Signature

www.brightfuture.ca/bright
My email address can be found on my site.

> > Hi there,
> >
[quoted text clipped - 19 lines]
> =Sum(IIf([Gender]="m",[GenderCount],0)
> =Sum(IIf([Gender]="F",[GenderCount],0)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.