Solved

IIF statement combine

Posted on 2011-03-03
2
476 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

733 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