oCN.Execute "SELECT 1 AS Dummy, forRepStep1.ID, forRepStep1.IRFNumP, forRepStep1.IRFNumB, IIf([MstatusID]<4,[IRFNumB] & "" - "" & [IRFNumW] & "" - "" & [IRFNumN] & "" R"" & [rev],"""") AS IRFNumSimple, forRepStep1.IRFNumBound, forRepStep1.Rev, forRepStep1.BuildingID, forRepStep1.DateDoc, forRepStep1.DateTimeAct, forRepStep1.Memo, forRepStep1.Desc, forRepStep1.RejectReasonID, forRepStep1.StatusDesc, forRepStep1.StatusAction, forRepStep1.CP, forRepStep1.DspCode, forRepStep1.MStatusID, Sched_Status0.MonitoringType, forRepStep1.StatusID1, forRepStep1.StatusID2, forRepStep1.StatusID3, forRepStep1.ByWhomID, forRepStep1.NCRNum, forRepStep1.IsClosed, forRepStep1.GivenID, forRepStep1.ClosedDateTime, forRepStep1.Status4, forRepStep1.PrjW, forRepStep1.Object, forRepStep1.ITPNumShort, forRepStep1.OBIName, forRepStep1.FacNameS, forRepStep1.ClosingComment, forRepStep1.TrackingComment0, forRepStep1.TrackingComment1, Sched_Status.Msg, Sched_Status.IsError, forRepStep1.DiscipDisp," & _
" IIf(IsNull([Rcode]),""Unknown"",[Rcode] & "": "" & [Reason]) AS RjR, forRepStep1.IRFNumW, forRepStep1.IRFNumN AS Expr1, forRepStep1.ClosedDateTimeSys, Sched_Status.NOCReq, Sched_Status.Cap3, forRepStep1.ItemDesc, forRepStep1.DateTimePlan, forRepStep1.NDIAName, " & _
" IIf(IIF(ISNULL(ByWhomID),'',ByWhomID))="""",""Contractor"",""KPIZ"")"" AS Own, forRepStep1.ClosedPrjWeek, forRepStep1.ITPAct, forRepStep1.ContractorNumber INTO forRepStep2 " & _
" FROM ((forRepStep1 LEFT JOIN Sched_Status ON forRepStep1.Status4 = Sched_Status.Status4) LEFT JOIN Sched_Status0 ON forRepStep1.MStatusID = Sched_Status0.Status1) LEFT JOIN RejectReason ON forRepStep1.RejectReasonID = RejectReason.RCode;"