T
Thomas
Hi all,
can anyone help (or improve) the following approach?
My intention is to create a filter for all tasks in
a) next 4 weeks
b) next 3 months
So I calculate the following dates
Start2 = ProjDateAdd(Now();9600) <--- approx. next 4 weeks
Start3 = ProjDateAdd(Now();28800) <--- approx. next 3 months
and compare them in order to use a filter with these flags.
Flag1 = IIf([Start]>Now();IIf([Start]<[Start2];1;0);0)
Flag2 = IIf([End]>Now();IIf([End]<[Start2];1;0);0)
Flag3 = [Flag1] or [Flag2]
--> next 4 weeks
Flag3 = IIf([Start]>Now();IIf([Start]<[Start3];1;0);0)
Flag4 = IIf([End]>Now();IIf([End]<[Start3];1;0);0)
Flag5 = [Flag3] or [Flag4]
--> next 3 months
IN GENERAL....
Why can't I go the following way, in order to save fields in
enterprise global?
Flag3 = IIf([Start]>Now();IIf([Start]<[Start2];1;0);0) OR
IIf([End]>Now();IIf([End]<[Start2];1;0);0)
--> ERROR MESSAGE
Flag5 = IIf([Start]>Now();IIf([Start]<[Start3];1;0);0) OR
IIf([End]>Now();IIf([End]<[Start3];1;0);0)
--> ERROR MESSAGE
If this would work I also could use only ONE flag without calculated
dates for each filter...like...
Flag3 = IIf([Start]>Now();IIf([Start]<ProjDateAdd(Now();9600);1;0);0)
OR IIf([End]>Now();IIf([End]<ProjDateAdd(Now();9600);1;0);0)
Any comments?
Any (other) ideas how to get this to work?
Any (other) ideas for an easy filter for next 4 weeks or next 3
months?
HELP
Thomas
PS: We're using Project / Project Server 2003
can anyone help (or improve) the following approach?
My intention is to create a filter for all tasks in
a) next 4 weeks
b) next 3 months
So I calculate the following dates
Start2 = ProjDateAdd(Now();9600) <--- approx. next 4 weeks
Start3 = ProjDateAdd(Now();28800) <--- approx. next 3 months
and compare them in order to use a filter with these flags.
Flag1 = IIf([Start]>Now();IIf([Start]<[Start2];1;0);0)
Flag2 = IIf([End]>Now();IIf([End]<[Start2];1;0);0)
Flag3 = [Flag1] or [Flag2]
--> next 4 weeks
Flag3 = IIf([Start]>Now();IIf([Start]<[Start3];1;0);0)
Flag4 = IIf([End]>Now();IIf([End]<[Start3];1;0);0)
Flag5 = [Flag3] or [Flag4]
--> next 3 months
IN GENERAL....
Why can't I go the following way, in order to save fields in
enterprise global?
Flag3 = IIf([Start]>Now();IIf([Start]<[Start2];1;0);0) OR
IIf([End]>Now();IIf([End]<[Start2];1;0);0)
--> ERROR MESSAGE
Flag5 = IIf([Start]>Now();IIf([Start]<[Start3];1;0);0) OR
IIf([End]>Now();IIf([End]<[Start3];1;0);0)
--> ERROR MESSAGE
If this would work I also could use only ONE flag without calculated
dates for each filter...like...
Flag3 = IIf([Start]>Now();IIf([Start]<ProjDateAdd(Now();9600);1;0);0)
OR IIf([End]>Now();IIf([End]<ProjDateAdd(Now();9600);1;0);0)
Any comments?
Any (other) ideas how to get this to work?
Any (other) ideas for an easy filter for next 4 weeks or next 3
months?
HELP
Thomas
PS: We're using Project / Project Server 2003