frenzied_female
Registered User.
- Local time
- Tomorrow, 00:41
- Joined
- Aug 24, 2016
- Messages
- 10
Hi Everyone,
I am trying to calculate the number of weeks open by using a parameter query. I would also like to include in the query the option to use the finalised date to calculate the number of weeks the ticket took to complete.
To calculate the number of weeks open I have used this parameter, which works well:
=IIf(IsNull([Finalised Date]),DateDiff("ww",[Opened Date],Now()))
I then need to add in if the finalised date is not null to calculate the overall number of weeks the ticket was open, i tried this:
=IIf(IsNull([Finalised Date]),DateDiff("ww",[Opened Date],Now())) Or (IsNotNull([Finalised Date]),DateDiff("ww",[Finalised Date],[Opened Date]))
But the result shows as: #Name?
Could somebody please show me where i am going wrong, i have no idea what to do.
Many thanks,
Kim
:banghead:
I am trying to calculate the number of weeks open by using a parameter query. I would also like to include in the query the option to use the finalised date to calculate the number of weeks the ticket took to complete.
To calculate the number of weeks open I have used this parameter, which works well:
=IIf(IsNull([Finalised Date]),DateDiff("ww",[Opened Date],Now()))
I then need to add in if the finalised date is not null to calculate the overall number of weeks the ticket was open, i tried this:
=IIf(IsNull([Finalised Date]),DateDiff("ww",[Opened Date],Now())) Or (IsNotNull([Finalised Date]),DateDiff("ww",[Finalised Date],[Opened Date]))
But the result shows as: #Name?
Could somebody please show me where i am going wrong, i have no idea what to do.
Many thanks,
Kim
:banghead: