i have a report which gives totals of workhours of empolyees per month (it collects data from a query to sum workhours over weeks)
In my report i want the sum of workhours of the employees till the month previous to the one i am reffering to. i use a datepart function in my query to get the month then in my report i have a textfield =Format$(DateAdd("m";-1;[ΑΝΑ ΕΤΟΣ-ΜΗΝΑ]);"yyyy-mm") to get the previus month from the date field.
What i want is the sum of workhours of emloyee till the month before
I tryed and tried reading but. can you help me?
=nz(DSum("[ΔΙΑΦΟΡΑ ΣΕ ΩΡΕΣ]";"[Qrevdomada]";"[ΕΠΩΝΥΜΟ]=" & [ΕΠΩΝΥΜΟ] And "[ΑΝΑ ΕΤΟΣ-ΜΗΝΑ]<=" & (Format$(DateAdd("m";-1;[ΑΝΑ ΕΤΟΣ-ΜΗΝΑ]);"yyyy-mm"))))
this is an #Error.. propably from syntax..
In my report i want the sum of workhours of the employees till the month previous to the one i am reffering to. i use a datepart function in my query to get the month then in my report i have a textfield =Format$(DateAdd("m";-1;[ΑΝΑ ΕΤΟΣ-ΜΗΝΑ]);"yyyy-mm") to get the previus month from the date field.
What i want is the sum of workhours of emloyee till the month before
I tryed and tried reading but. can you help me?
=nz(DSum("[ΔΙΑΦΟΡΑ ΣΕ ΩΡΕΣ]";"[Qrevdomada]";"[ΕΠΩΝΥΜΟ]=" & [ΕΠΩΝΥΜΟ] And "[ΑΝΑ ΕΤΟΣ-ΜΗΝΑ]<=" & (Format$(DateAdd("m";-1;[ΑΝΑ ΕΤΟΣ-ΜΗΝΑ]);"yyyy-mm"))))
this is an #Error.. propably from syntax..