just useSELECT [4_ConvertExcepTXT].Employee_Number,CAST(NULL as decimal(10,2)), [4_ConvertExcepTXT].Code, [4_ConvertExcepTXT].Paid,CAST(NULL AS Decimal(10,2)),CAST(NULL AS Decimal(10,2))FROM 4_ConvertExcepTXT INNER JOIN MiscExceptionsList ON [4_ConvertExcepTXT].Code = MiscExceptionsList.CodedExceptions;union allSELECT DISTINCTROW [2_ScratchPad].Employee_Number,Format([SumOfLogIn]/60,"Fixed") AS hours,NULL,NULL, IIf([hours]>40,[hours]-40,0) AS ot, IIf([hours]>40,[hours]-[ot],[hours]) AS RegHoursFROM 2_ScratchPadGROUP BY [2_ScratchPad].Employee_Number;
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/