L
Lyle via AccessMonster.com
Hi!
I hope you can help me with this, I'm sure it will seems easy to you guys.
I want to run a query where it will show me the running balance of my
inventory. But I can't seem to get it right. I have two types of
transactions, Purchase and Sales. I made a query for each of them to total
the purchases and sales for each inventory item. Problem is, when I group
them together in a single query, the only inventory items appearing with the
running balance are the ones who have both been purchased and sold. I even
tried to use the Nz function, but i think I got it wrong.
In the Purchase query, I placed the expression for Purchase as Purchase: Nz(
[qty],0), where qty is the quantity I purchased.
In the Sales Query, I put Sales: Nz((-1*[qty]),0).
When i put them together in a another query Balance, I placed for the Balance:
[Purchases]+[Sales]. I even tried using Nz([Purchases],0)+Nz([Sales],0]) but
still to no avail.
I summed/totaled all the expressions aboved and grouped them to their
respective inventory name.
Thanks! Hope you can help me.
Lyle
I hope you can help me with this, I'm sure it will seems easy to you guys.
I want to run a query where it will show me the running balance of my
inventory. But I can't seem to get it right. I have two types of
transactions, Purchase and Sales. I made a query for each of them to total
the purchases and sales for each inventory item. Problem is, when I group
them together in a single query, the only inventory items appearing with the
running balance are the ones who have both been purchased and sold. I even
tried to use the Nz function, but i think I got it wrong.
In the Purchase query, I placed the expression for Purchase as Purchase: Nz(
[qty],0), where qty is the quantity I purchased.
In the Sales Query, I put Sales: Nz((-1*[qty]),0).
When i put them together in a another query Balance, I placed for the Balance:
[Purchases]+[Sales]. I even tried using Nz([Purchases],0)+Nz([Sales],0]) but
still to no avail.
I summed/totaled all the expressions aboved and grouped them to their
respective inventory name.
Thanks! Hope you can help me.
Lyle