Johnny Drama
In need of beer...
- Local time
- Yesterday, 18:20
- Joined
- Dec 12, 2008
- Messages
- 211
Hi all,
I've currently got a report that takes two date fields and calculates the number of days between the two dates. The problem I am having is that I need the number of days to be calculated even when the Management Close Date field does not have an actual date entered into it, i.e. it needs to calculate based upon the current day until a date is enter into the field. The current calculation below works fine, but I'm not sure where to insert an =now() statement...should it be in this string or should it be a part of the Management Close Date field?
=IIf(IsNull([Opened Date]),DateDiff("d",[Management Close Date],Date()),DateDiff("d",[Opened Date],[Management Close Date]))
Thanks
I've currently got a report that takes two date fields and calculates the number of days between the two dates. The problem I am having is that I need the number of days to be calculated even when the Management Close Date field does not have an actual date entered into it, i.e. it needs to calculate based upon the current day until a date is enter into the field. The current calculation below works fine, but I'm not sure where to insert an =now() statement...should it be in this string or should it be a part of the Management Close Date field?
=IIf(IsNull([Opened Date]),DateDiff("d",[Management Close Date],Date()),DateDiff("d",[Opened Date],[Management Close Date]))
Thanks