Advertisement

12.21.2006 at 06:07AM PST, ID: 22100441
[x]
Attachment Details

IIF statement and dlookup

Asked by Petrobras in Microsoft Access Database

Tags: iif, dlookup, statement

Experts,

I need to ask for some assistance with an iif statement.  I want to use it in conjuntion with a dlookup.  I need to populate a field on a report with either of two other fields found in a table.  The condition is that I want to populate this field with whichever of the two fields is null.  

fields to be looked at:
[Comments] in tblCreditReports
[Comments] in tblCreditReportsST
==>whichever of those two fields is populated then I would want to have populated in the field containing this iif statement.  Also, if both are null then I would need to have that handled too.

THE FOLLOWING IS WAY OFF AND SYNTAX IS WRONG BUT IT MIGHT LOOK SIMILAR LIKE THIS:
=IIf(IsNull(DLookUp("[Comments]","tblCheckList","[DealID] = " & [Forms]![frmDeals]![DealID])) Or IsNull(DLookUp("[Comments]","tblCheckListST","[DealID] = " & [Forms]![frmDeals]![DealID])=" "," ",DLookUp("[Comments]","tblCreditReports","[DealID] = " & [Forms]![frmDeals]![DealID]))

THANK YOUStart Free Trial
 
 
[+][-]12.21.2006 at 06:16AM PST, ID: 18180369

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.21.2006 at 06:21AM PST, ID: 18180417

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: iif, dlookup, statement
Sign Up Now!
Solution Provided By: JDettman
Participating Experts: 4
Solution Grade: A
 
 
[+][-]12.21.2006 at 06:30AM PST, ID: 18180507

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 06:33AM PST, ID: 18180528

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 06:38AM PST, ID: 18180572

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 07:27AM PST, ID: 18180986

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 07:34AM PST, ID: 18181024

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 03:23PM PST, ID: 18184215

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.22.2006 at 06:20AM PST, ID: 18186956

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32