Thank you jdraw for your reply.
I use this code.
SELECT TableX.Customer, TableX.Product, TableX.InQuantity, TableZ.OutQuantity, [TableX].[InQuantity]-[TableZ].[OutQuantity] AS Balance
FROM TableX INNER JOIN TableZ ON (TableX.Product = TableZ.Product) AND (TableX.Customer =...