eckert1961
Registered User.
- Local time
- Yesterday, 20:23
- Joined
- Oct 25, 2004
- Messages
- 90
Hello,
I'm running Access 2003 and I'm having problems with an IIF statement that I have in one of my reports. Here is what I have so far.
This statement works but not in the way that I need as I have 3 possible conditions.
I need to change this statement so that if the date field [ThirdDate] IsNull then Val([Field43])+7 is calculated and entered. If [ThirdDate] Isn't Null then Val([Field42])+7 is calculated and entered. Finally if Val([Field42])+7>=32 then a Null is entered into the field on the report.
Can this be accomplished with an IIF statement?
Thanks,
Chris
I'm running Access 2003 and I'm having problems with an IIF statement that I have in one of my reports. Here is what I have so far.
Code:
=IIf((IsNull([Forms]![Attendance Form]![ThirdDate]) Or (Val([Field43])+7>=32),Null,Val([Field42])+7)
This statement works but not in the way that I need as I have 3 possible conditions.
I need to change this statement so that if the date field [ThirdDate] IsNull then Val([Field43])+7 is calculated and entered. If [ThirdDate] Isn't Null then Val([Field42])+7 is calculated and entered. Finally if Val([Field42])+7>=32 then a Null is entered into the field on the report.
Can this be accomplished with an IIF statement?
Thanks,
Chris