Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IIF statement combine

Posted on 2011-03-03
2
Medium Priority
?
491 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 40

Accepted Solution

by:
als315 earned 2000 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

963 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