I have created this query:
SELECT tblCategories.Category, tblThings.ThingsName, tblThings.ThingsCabinet, Nz([ThingsAmtPurchased],0)+Nz([2ndPurchase],0)+Nz([3rdPurchase],0) AS [Total Purchased]
FROM tblCategories LEFT JOIN tblThings ON tblCategories.CategoryID = tblThings.CategoryID;
Now, I need to take information from a different table for the subtraction portion. Adding the other table will not allow me to left join, and I can't figure out how to place the subtraction portion in the code above. The code I believe would be tblPresentor.AmtsGiftsPresented.
There is a relationship between the tables - tblThings and tblPresentor with PresentorID.
Can you help me - still learning.
SELECT tblCategories.Category, tblThings.ThingsName, tblThings.ThingsCabinet, Nz([ThingsAmtPurchased],0)+Nz([2ndPurchase],0)+Nz([3rdPurchase],0) AS [Total Purchased]
FROM tblCategories LEFT JOIN tblThings ON tblCategories.CategoryID = tblThings.CategoryID;
Now, I need to take information from a different table for the subtraction portion. Adding the other table will not allow me to left join, and I can't figure out how to place the subtraction portion in the code above. The code I believe would be tblPresentor.AmtsGiftsPresented.
There is a relationship between the tables - tblThings and tblPresentor with PresentorID.
Can you help me - still learning.
Last edited: