I am trying to figure out a formula using the iif and isnull function.
I am doing an on time report that looks at the Date Received, Date Required, Ship Date, Todays date and a few other things.
The formula I am trying to work with is
What I am trying to get it to do is if the ship is empty subtract the todays date from the required date and add 1. If the ship date has a date subtract the ship date from the received date and add 1.
When I run the query I just get #Error.
Is there an easier way to do this or do I just have an error in my code?
Thanks for your help
Mike
I am doing an on time report that looks at the Date Received, Date Required, Ship Date, Todays date and a few other things.
The formula I am trying to work with is
Code:
DAYS WORK DONE IN: IIf(IsNull([SHIP_DATE]),[TODAY]-[REQUIRED]+1,[SHIP_DATE]-[RECEIVED]+1)
What I am trying to get it to do is if the ship is empty subtract the todays date from the required date and add 1. If the ship date has a date subtract the ship date from the received date and add 1.
When I run the query I just get #Error.
Is there an easier way to do this or do I just have an error in my code?
Thanks for your help
Mike