Hi Rick
The only filter is - {SOPrintQueue.RI_ID} = val(RIPARAM( "RI_ID" ))
The query behind the report is as follows. Thanks for the assistance.
SELECT "Terms"."Descr", "SOType"."Descr", "SOShipHeader"."ShipperID", "SOShipHeader"."CustID", "SOShipHeader"."BillName", "SOShipHeader"."BillAddr1", "SOShipHeader"."BillAddr2", "SOShipHeader"."BillCity", "SOShipHeader"."BillState", "SOShipHeader"."BillZip", "SOShipHeader"."ShipAttn", "SOShipHeader"."ShipName", "SOShipHeader"."ShipAddr1", "SOShipHeader"."ShipAddr2", "SOShipHeader"."ShipCity", "SOShipHeader"."ShipState", "SOShipHeader"."ShipZip", "SOShipHeader"."OrdDate", "SOShipLine"."InvtID", "SOShipLine"."UnitDesc", "SOShipLot"."WhseLoc", "SOShipLine"."AlternateID", "SOShipLine"."AltIDType", "SOShipLine"."Descr", "SOShipHeader"."CpnyID", "SOShipHeader"."OrdNbr", "SOShipHeader"."SOTypeID", "SOShipLine"."LineRef", "SOShipLine"."OrigInvtID", "SOShipMark"."City", "SOShipMark"."State", "SOShipMark"."Zip", "SOShipLine"."QtyShip", "SOShipLine"."CurySlsPrice", "SOShipLine"."CuryTotMerch", "SOShipHeader"."CuryID", "SOShipHeader"."InvcDate", "SOPrintQueue"."Reprint", "SOShipHeader"."DropShip", "SOShipMark"."Name1", "SOShipLot"."QtyShip", "SOPrintQueue"."RI_ID", "SOShipLot"."LineRef", "SOShipLot"."LotSerNbr", "Inventory"."LotSerTrack", "SOShipLine"."CpnyID", "SOShipLine"."ShipperID", "Country"."Descr", "ShipCountry"."Descr", "SOShipHeader"."InvcNbr", "SOPrintQueue"."ShipperID", "SOShipHeader"."BillAttn", "SOShipHeader"."NoteID", "SOShipLine"."NoteID", "SOType"."Behavior", "SOHeaderMark"."Name1", "SOHeaderMark"."City", "SOHeaderMark"."State", "SOHeaderMark"."Zip", "SOShipLine"."CnvFact", "SOShipLine"."UnitMultDiv", "SOShipLine"."QtyBO", "Site"."Name", "SOLine"."UnitDesc", "SOShipLine"."QtyOrd", "SOLine"."UnitMultDiv", "SOLine"."CnvFact", "SOPrintQueue"."InvcNbr", "SOShipHeader"."Cancelled", "SOShipHeader"."ASID", "SOShipHeader"."WSID", "SOShipHeader"."CustOrdNbr", "SOShipHeader"."SiteID", "SOShipHeader"."CuryTotPmt", "SOShipHeader"."CuryTotMerch", "SOShipHeader"."CuryTotMisc", "SOShipHeader"."CuryWholeOrdDisc", "SOShipHeader"."CuryTotFrtInvc", "SOShipHeader"."CuryPremFrtAmt", "CertificationText"."CertText00", "CertificationText"."CertText01", "CertificationText"."CertText02", "CertificationText"."CertText03", "FrtTerms"."Collect", "SOShipLine"."TaxAmt01", "SOShipLine"."TaxAmt00", "SOShipLine"."TaxAmt02", "SOShipLine"."TaxAmt03", "SOShipLine"."TaxID00", "SOShipHeader"."CuryTotTax", "Snote"."sNoteText", "Snote1"."sNoteText"
FROM ((((((((((((((("HipacApp"."dbo"."SOPrintQueue" "SOPrintQueue" INNER JOIN "TestApp"."dbo"."SOShipHeader" "SOShipHeader" ON ("SOPrintQueue"."CpnyID"="SOShipHeader"."CpnyID") AND ("SOPrintQueue"."ShipperID"="SOShipHeader"."ShipperID")) LEFT OUTER JOIN "TestApp"."dbo"."SOType" "SOType" ON ("SOShipHeader"."CpnyID"="SOType"."CpnyID") AND ("SOShipHeader"."SOTypeID"="SOType"."SOTypeID")) LEFT OUTER JOIN "TestApp"."dbo"."Terms" "Terms" ON "SOShipHeader"."TermsID"="Terms"."TermsId") LEFT OUTER JOIN
"TestApp"."dbo"."SOShipLine" "SOShipLine" ON ("SOShipHeader"."CpnyID"="SOShipLine"."CpnyID") AND ("SOShipHeader"."ShipperID"="SOShipLine"."ShipperID")) LEFT OUTER JOIN "TestApp"."dbo"."Snote" "Snote" ON "SOShipHeader"."NoteID"="Snote"."nID") LEFT OUTER JOIN "TestApp"."dbo"."CertificationText" "CertificationText" ON "SOShipHeader"."CertID"="CertificationText"."CertID") LEFT OUTER
JOIN "TestApp"."dbo"."SOShipMark" "SOShipMark" ON ("SOShipHeader"."CpnyID"="SOShipMark"."CpnyID") AND ("SOShipHeader"."ShipperID"="SOShipMark"."ShipperID")) LEFT OUTER JOIN "TestApp"."dbo"."Country" "Country" ON "SOShipHeader"."BillCountry"="Country"."CountryID") LEFT OUTER JOIN "TestApp"."dbo"."Country" "ShipCountry" ON "SOShipHeader"."ShipCountry"="ShipCountry"."CountryID") LEFT OUTER JOIN "TestApp"."dbo"."SOHeaderMark" "SOHeaderMark" ON ("SOShipHeader"."CpnyID"="SOHeaderMark"."CpnyID") AND ("SOShipHeader"."OrdNbr"="SOHeaderMark"."OrdNbr")) LEFT OUTER JOIN "TestApp"."dbo"."Site" "Site" ON "SOShipHeader"."SiteID"="Site"."SiteId") LEFT OUTER JOIN "TestApp"."dbo"."FrtTerms" "FrtTerms" ON "SOShipHeader"."FrtTermsID"="FrtTerms"."FrtTermsID") LEFT OUTER JOIN "TestApp"."dbo"."SOShipLot" "SOShipLot" ON (("SOShipLine"."CpnyID"="SOShipLot"."CpnyID") AND ("SOShipLine"."LineRef"="SOShipLot"."LineRef")) AND ("SOShipLine"."ShipperID"="SOShipLot"."ShipperID")) LEFT OUTER JOIN "TestApp"."dbo"."Snote" "Snote1" ON "SOShipLine"."NoteID"="Snote1"."nID") LEFT OUTER JOIN "TestApp"."dbo"."Inventory" "Inventory" ON "SOShipLine"."InvtID"="Inventory"."InvtID") LEFT OUTER JOIN "TestApp"."dbo"."SOLine" "SOLine" ON (("SOShipLine"."CpnyID"="SOLine"."CpnyID") AND ("SOShipLine"."OrdLineRef"="SOLine"."LineRef")) AND ("SOShipLine"."OrdNbr"="SOLine"."OrdNbr")