Hello,
New IT professional here - working in SQL - Need to deliver query to End Users via Access - I have this Query in SQL server which runs as expected. Access has all sorts of problems with the join. Would anyone be able to lend a hand?
USE *********
SELECT SS.DatePromised
, SS.Customername
, SS.CustomerNum
, ID.MfgCode
, ID.CatNum
, ID.ProductDescription
, ID.Price
, ID.PriceUOM
, SS.OrigRegNum
, SS.CustPO
, PO.PONum
, ID.OrderQty
, PO.PORecdQTY1
, PO.PORecdDate1
, PO.PORecdQTY2
, PO.PORecdDate2
, PO.PORecdQTY3
, PO.PORecdDate3
, ID.SalesType
, SS.SalesRepNumIN
, SS.SalesRepNumOUT
FROM (db
penInvoiceDetail AS ID INNER JOIN dbo.openSalesSummary AS SS ON ID.OpenSalesSummaryID = SS.OpenSalesSummaryID)
LEFT JOIN dbo.PODetail AS PO ON SS.OrigRegNum = PO.BOCustRegNum1 AND ID.CatNum = PO.CatNum
WHERE SS.DatePromised < getdate()
ORDER BY ID.OpenSalesSummaryID, Id.InvLine;
Thank you in Advance!
New IT professional here - working in SQL - Need to deliver query to End Users via Access - I have this Query in SQL server which runs as expected. Access has all sorts of problems with the join. Would anyone be able to lend a hand?
USE *********
SELECT SS.DatePromised
, SS.Customername
, SS.CustomerNum
, ID.MfgCode
, ID.CatNum
, ID.ProductDescription
, ID.Price
, ID.PriceUOM
, SS.OrigRegNum
, SS.CustPO
, PO.PONum
, ID.OrderQty
, PO.PORecdQTY1
, PO.PORecdDate1
, PO.PORecdQTY2
, PO.PORecdDate2
, PO.PORecdQTY3
, PO.PORecdDate3
, ID.SalesType
, SS.SalesRepNumIN
, SS.SalesRepNumOUT
FROM (db
LEFT JOIN dbo.PODetail AS PO ON SS.OrigRegNum = PO.BOCustRegNum1 AND ID.CatNum = PO.CatNum
WHERE SS.DatePromised < getdate()
ORDER BY ID.OpenSalesSummaryID, Id.InvLine;
Thank you in Advance!