I could not follow your relationships diagram. For your own benefit you should put in descriptions for your tables and fields. It would be less confusing.
I rearranged your query as
Code:
SELECT tb_Receiving.PODetails_ID, Sum(Nz([tb_Receiving].[QuantityReceived],0)) AS QtyReceived
, Sum(Nz([tb_issuances].[QuantityIssue],0)) AS QtyIssued
, Sum(Nz([QuantityReceived],0)-Nz([QuantityIssue],0)) AS [Stock on Hand]
FROM tb_Receiving LEFT JOIN tb_Issuances ON
tb_Receiving.QuantityReceived = tb_Issuances.QuantityIssue
GROUP BY tb_Receiving.PODetails_ID;
And got this result
PODetails_ID |
QtyReceived |
QtyIssued |
Stock on Hand |
8 |
250 |
100 |
150 |
9 |
250 |
25 |
225 |
10 |
150 |
100 |
50 |
11 |
250 |
30 |
220 |
12 |
100 |
100 |
0 |
Are you only receiving and issuing 1 Product/Item??