SELECT tblCarrier.Carrier, tblContainerID.Container, tblDepthRecord.ContainerNumber, tblWorkOrders.CORNumber, tblCustomers.Customer, tblWorkOrders.CustomerPONumber, tblCustomers.Extension1, tblCustomers.Extension2, tblModules.HazMat, ("JB-" & [tblWorkOrders.JobNumber] & "-" & [ShipmentNumber]) AS JB, tblWorkOrders.JobNumber, tblModules.Module, tblModules.ModuleDescription, tblDepthRecord.ModuleNumber, tblCustomers.Phone1, tblCustomers.Phone2, tblDepthRecord.SealNumber, tblDepthRecord.ShipDate, tblDepthRecord.ShipmentNumber, tblCustomers.ShipToAdd1, tblCustomers.ShipToAdd2, tblCustomers.ShipToAdd3, tblCustomers.ShipToCity, tblCustomers.ShipToState, tblCustomers.ShipToZip, tblTermsConditions.TermsConditions, tblDepthRecord.UnitsShipped, tblDepthRecord.Weight, tblDepthRecord.FrtCost, tblDepthRecord.InvoiceNumber, tblDepthRecord.Paid
FROM ((((tblDepthRecord INNER JOIN tblModules ON tblDepthRecord.ModulesID=tblModules.ModulesID) INNER JOIN tblCarrier ON tblDepthRecord.CarrierID=tblCarrier.CarrierID) INNER JOIN ((tblWorkOrders INNER JOIN tblCustomers ON tblWorkOrders.CustomerID=tblCustomers.CustomerID) INNER JOIN tblWorkOrderDetails ON tblWorkOrders.WorkOrdersID=tblWorkOrderDetails.WorkOrdersID) ON tblDepthRecord.WorkOrderDetailsID=tblWorkOrderDetails.WorkOrderDetailsID) INNER JOIN tblTermsConditions ON tblWorkOrders.TermsConditionsID=tblTermsConditions.TermsConditionsID) INNER JOIN tblContainerID ON tblDepthRecord.ContainerID=tblContainerID.ContainerID
GROUP BY tblCarrier.Carrier, tblContainerID.Container, tblDepthRecord.ContainerNumber, tblWorkOrders.CORNumber, tblCustomers.Customer, tblWorkOrders.CustomerPONumber, tblCustomers.Extension1, tblCustomers.Extension2, tblModules.HazMat, ("JB-" & [tblWorkOrders.JobNumber] & "-" & [ShipmentNumber]), tblWorkOrders.JobNumber, tblModules.Module, tblModules.ModuleDescription, tblDepthRecord.ModuleNumber, tblCustomers.Phone1, tblCustomers.Phone2, tblDepthRecord.SealNumber, tblDepthRecord.ShipDate, tblDepthRecord.ShipmentNumber, tblCustomers.ShipToAdd1, tblCustomers.ShipToAdd2, tblCustomers.ShipToAdd3, tblCustomers.ShipToCity, tblCustomers.ShipToState, tblCustomers.ShipToZip, tblTermsConditions.TermsConditions, tblDepthRecord.UnitsShipped, tblDepthRecord.Weight, tblDepthRecord.FrtCost, tblDepthRecord.InvoiceNumber, tblDepthRecord.Paid
ORDER BY tblWorkOrders.CORNumber, tblDepthRecord.ShipmentNumber;