Solved

IIF statement combine

Posted on 2011-03-03
2
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

626 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