& "IIf((DateDiff('n',[schCallTime],[schOutTime])/60)=24,0,(DateDiff('n',[schCallTime],[schOutTime])/60)) AS [TotalHours], " _
& "IIf((DateDiff('n',[schActualStart],[schActualEnd])/60)=24,0,(DateDiff('n',[schActualStart],[schActualEnd])/60)) AS [ActualTotalHours], " _
& "([ActualTotalHours]*[empRate]) AS [ActualAmount], ([TotalHours]*[empRate]) AS [ShiftAmount]," _
& "IIf([evtDescription]='Projects' Or [evtDescription]='VIP Management' Or [evtDescription]='Weekend Services','0','1') AS [tmpOrder] " _
& "FROM tblPositions RIGHT JOIN (tblTypes RIGHT JOIN (tblParts RIGHT JOIN (tblLocations RIGHT JOIN (tblEvents RIGHT JOIN ((tblEmployeeStatus RIGHT JOIN tblEmployees ON tblEmployeeStatus.ID = tblEmployees.empStatusID) INNER JOIN (tblDepartments RIGHT JOIN tblSchedule ON tblDepartments.depID = tblSchedule.schDepID) ON tblEmployees.empID = tblSchedule.schEmpID) ON tblEvents.evtID = tblSchedule.schEvtID) ON tblLocations.locID = tblSchedule.schLocID) ON tblParts.prtID = tblSchedule.schPartsID) ON tblTypes.typID = tblSchedule.schTypID) ON tblPositions.posID = tblSchedule.schPosID " _