I need some help again once again.
I have query which is based of a table called Jobtbl. My Table looks Like this..
JobNumber PhaseNumber CTCDTE FINISHDTE
302334 1 1/25/07 3/2/07
334455 2 3/5/07 3/8/07
312345 3 3/10/07 3/28/07
In my query a field called WRKDAYS calls a function called WorkDaysDifference that excludes weekends and holidays. This works well when I am calculating the number of workdays between [CTCDTE] and [FINISHDTE]. The function is..
[blue] WRKDAYS: IIf([Jobtbl]![PhaseNumber]=1,WorkDaysDifference([ctcdte],[FINISHDTE]))[/blue]
The query results are...
JobNumber PHASENUMBER CTCTDTE FINISHDTE WRKDAYS
302334 1 1/25/07 3/2/07 27
334455 2 1/25/07 3/8/07
312345 3 1/25/07 3/28/07
What I need to accomplish here is to calculate the WRKDAYS from the completion of PhaseNumber (1) 3/2/07 to the completion of PhaseNumber (2) 3/8/07 and so on... PhaseNumber (2) 3/8/07 through the completion of PhaseNumber (3) 3/28/07.
The results would be...
JobNumber PHASENUMBER CTCTDTE FINISHDTE WRKDAYS WRKDAYS2 WRKDAYS3
302334 1 1/25/07 3/2/07 27
334455 2 1/25/07 3/8/07 5
312345 3 1/25/07 3/28/07 15
How do I modify the funcion for WRKDAYS2 WRKDAYS3 to produce the above results?
I have query which is based of a table called Jobtbl. My Table looks Like this..
JobNumber PhaseNumber CTCDTE FINISHDTE
302334 1 1/25/07 3/2/07
334455 2 3/5/07 3/8/07
312345 3 3/10/07 3/28/07
In my query a field called WRKDAYS calls a function called WorkDaysDifference that excludes weekends and holidays. This works well when I am calculating the number of workdays between [CTCDTE] and [FINISHDTE]. The function is..
[blue] WRKDAYS: IIf([Jobtbl]![PhaseNumber]=1,WorkDaysDifference([ctcdte],[FINISHDTE]))[/blue]
The query results are...
JobNumber PHASENUMBER CTCTDTE FINISHDTE WRKDAYS
302334 1 1/25/07 3/2/07 27
334455 2 1/25/07 3/8/07
312345 3 1/25/07 3/28/07
What I need to accomplish here is to calculate the WRKDAYS from the completion of PhaseNumber (1) 3/2/07 to the completion of PhaseNumber (2) 3/8/07 and so on... PhaseNumber (2) 3/8/07 through the completion of PhaseNumber (3) 3/28/07.
The results would be...
JobNumber PHASENUMBER CTCTDTE FINISHDTE WRKDAYS WRKDAYS2 WRKDAYS3
302334 1 1/25/07 3/2/07 27
334455 2 1/25/07 3/8/07 5
312345 3 1/25/07 3/28/07 15
How do I modify the funcion for WRKDAYS2 WRKDAYS3 to produce the above results?