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 / February 2005

Tip: Looking for answers? Try searching our database.

Calculate count based on date and option group

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lbanglin - 18 Feb 2005 03:06 GMT
I am trying to calculate a count of records on my report that have a
specific RoleID and were enrolled by a specific date.  I am able to
count the records with a specific RoleID with the following in a text
box:
=Sum(Abs([RoleID]=4))
or
=Sum(IIf([RoleID]=4,1,0))
I need to add to that [DateEnrolled]<=6/21/2004, but I am lacking the
proper syntax because I have not been able to make it work.

Thank you for your help,

Laura

Signature

lbanglin

Marshall Barton - 18 Feb 2005 05:10 GMT
>I am trying to calculate a count of records on my report that have a
>specific RoleID and were enrolled by a specific date.  I am able to
[quoted text clipped - 5 lines]
>I need to add to that [DateEnrolled]<=6/21/2004, but I am lacking the
>proper syntax because I have not been able to make it work.

=Sum(IIf([RoleID]=4 AND [DateEnrolled]<=#6/21/2004#,1,0))

Signature

Marsh
MVP [MS Access]

 
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.