I am trying to set up a status field within a query where only the latest date of the following three fields appears, but the PERRR1 and PERRR2 fields may or may not any have an entry.
PERReceived
PERRR1
PERRR2
So if PERRR2 is not entered then it should enter PERRR1 and if PERRR1 that isn't entered it should enter PERReceived. PERReceived will always have a date.
I've tried a nested iif statement in the query that looks like this:
Status: IIf(IsNull([PERRR2]),[PERRR1],IIf(IsNull([PERRR1]),[PERReceived],[PERRR2]))
The output is that I get dates if there is an entry for PERRR2 or PERRR1 but the field is blank otherwise. I would like if there is no entry for PERRR2 or PERRR1 that the status field states the PERReceived.
Thanks for you help.
PERReceived
PERRR1
PERRR2
So if PERRR2 is not entered then it should enter PERRR1 and if PERRR1 that isn't entered it should enter PERReceived. PERReceived will always have a date.
I've tried a nested iif statement in the query that looks like this:
Status: IIf(IsNull([PERRR2]),[PERRR1],IIf(IsNull([PERRR1]),[PERReceived],[PERRR2]))
The output is that I get dates if there is an entry for PERRR2 or PERRR1 but the field is blank otherwise. I would like if there is no entry for PERRR2 or PERRR1 that the status field states the PERReceived.
Thanks for you help.