Solved

IIF statement combine

Posted on 2011-03-03
2
440 Views
Last Modified: 2012-05-11
Experts,

I have the following in the reports qry design window divided between 2 groups.   Is it possible to combine the two statements into just one "MyGroup".  I would have in effect, 4 options based on either [DateApproved] or [DateAmendApprovedbyBank].  Or maybe a sub report would be better but I think it migght slow down the report speed.

thank you

MyGroup2: IIf(IsNull([tblLCAmendHistory].[DateApproved]),"Awaiting Amend Approval by Co","Amend Approved by Co")

MyGroup: IIf(IsNull([tblLCAmendHistory].[DateAmendApprovedByBank]),"Awaiting Amend Approval by Bank","Recently Approved Amend by Bank")
0
Comment
Question by:pdvsa
2 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 35033946
You can combine it, but there will be little bit different cases:
1. [DateApproved] is null
1a. [DateApproved] is null and [DateAmendApprovedByBank] is null
1b. [DateApproved] is null and [DateAmendApprovedByBank] is not null
2. [DateApproved] is not null
2a. [DateApproved] is not null and [DateAmendApprovedByBank] is null
2b. [DateApproved] is not null and [DateAmendApprovedByBank] is not null
You should describe options for these cases
0
 

Author Closing Comment

by:pdvsa
ID: 35035310
Ok thank you.  I think i will need a sub report because i think it is too difficult to put all in one iif stmnt.

Thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now