G
Guest
Here is my calcuation
Vac:
Sum(nz([XXSUBqrySubstituteLeaveStatusVac!decVacHours],0+NZ([XXSUBqrySubstituteLeaveStatusVacADJ!decVacHours],0)))
And the SQL View
SELECT XXSUBqrySubstituteLeaveStatusVac.chrSSN,
Sum(nz([XXSUBqrySubstituteLeaveStatusVac!decVacHours],0+NZ([XXSUBqrySubstituteLeaveStatusVacADJ!decVacHours],0))) AS Vac
FROM XXSUBqrySubstituteLeaveStatusVac LEFT JOIN
XXSUBqrySubstituteLeaveStatusVacADJ ON
(XXSUBqrySubstituteLeaveStatusVac.dtePayEndDate =
XXSUBqrySubstituteLeaveStatusVacADJ.dteTimeStamp) AND
(XXSUBqrySubstituteLeaveStatusVac.chrSSN =
XXSUBqrySubstituteLeaveStatusVacADJ.chrSSN)
GROUP BY XXSUBqrySubstituteLeaveStatusVac.chrSSN;
My problem is that there are 1 lines equalling 6 hours from
XXSUBqrySubstituteLeaveStatusVacADJ! that are not being picked up. What am I
doing wrong?
TIA!
Julie
Vac:
Sum(nz([XXSUBqrySubstituteLeaveStatusVac!decVacHours],0+NZ([XXSUBqrySubstituteLeaveStatusVacADJ!decVacHours],0)))
And the SQL View
SELECT XXSUBqrySubstituteLeaveStatusVac.chrSSN,
Sum(nz([XXSUBqrySubstituteLeaveStatusVac!decVacHours],0+NZ([XXSUBqrySubstituteLeaveStatusVacADJ!decVacHours],0))) AS Vac
FROM XXSUBqrySubstituteLeaveStatusVac LEFT JOIN
XXSUBqrySubstituteLeaveStatusVacADJ ON
(XXSUBqrySubstituteLeaveStatusVac.dtePayEndDate =
XXSUBqrySubstituteLeaveStatusVacADJ.dteTimeStamp) AND
(XXSUBqrySubstituteLeaveStatusVac.chrSSN =
XXSUBqrySubstituteLeaveStatusVacADJ.chrSSN)
GROUP BY XXSUBqrySubstituteLeaveStatusVac.chrSSN;
My problem is that there are 1 lines equalling 6 hours from
XXSUBqrySubstituteLeaveStatusVacADJ! that are not being picked up. What am I
doing wrong?
TIA!
Julie