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("[Comm
ents]","tb
lCheckList
","[DealID
] = " & [Forms]![frmDeals]![DealID
])) Or IsNull(DLookUp("[Comments]
","tblChec
kListST","
[DealID] = " & [Forms]![frmDeals]![DealID
])=" "," ",DLookUp("[Comments]","tb
lCreditRep
orts","[De
alID] = " & [Forms]![frmDeals]![DealID
]))
THANK YOU
Start Free Trial