Calculations in Queries

G

Guest

I have 2 tables I am trying to bring together in a query and perform a
calculation but I am not getting the calculation to work.

First table is a product Table (Prod ID, product name, description and a
Second table transacation table (Autonumber, Prod #, qty shipped and qty
received)

In the query I want to product name and the difference between qty shipped
and qty received? I am not getting a total to appear, I am not getting an
error either.

Any idea?
 
G

Guest

I have Totals: [Qty_Shipped]-[Qty_Received] - I am not getting an error the
result is just blank? They both are number fields.

Rick B said:
Difference: [Qty shipped] - [Qty received]

Assuming those fields are number fields.



Erika said:
I have 2 tables I am trying to bring together in a query and perform a
calculation but I am not getting the calculation to work.

First table is a product Table (Prod ID, product name, description and a
Second table transacation table (Autonumber, Prod #, qty shipped and qty
received)

In the query I want to product name and the difference between qty shipped
and qty received? I am not getting a total to appear, I am not getting an
error either.

Any idea?
 
R

Rick B

are some null?

You might need....

Totals: Nz([Qty_Shipped],0) - Nz([Qty_Received],0)



Rick B

Erika said:
I have Totals: [Qty_Shipped]-[Qty_Received] - I am not getting an error the
result is just blank? They both are number fields.

Rick B said:
Difference: [Qty shipped] - [Qty received]

Assuming those fields are number fields.



Erika said:
I have 2 tables I am trying to bring together in a query and perform a
calculation but I am not getting the calculation to work.

First table is a product Table (Prod ID, product name, description and a
Second table transacation table (Autonumber, Prod #, qty shipped and qty
received)

In the query I want to product name and the difference between qty shipped
and qty received? I am not getting a total to appear, I am not getting an
error either.

Any idea?
 
G

Guest

That will do it - thank you Rick B!

Rick B said:
are some null?

You might need....

Totals: Nz([Qty_Shipped],0) - Nz([Qty_Received],0)



Rick B

Erika said:
I have Totals: [Qty_Shipped]-[Qty_Received] - I am not getting an error the
result is just blank? They both are number fields.

Rick B said:
Difference: [Qty shipped] - [Qty received]

Assuming those fields are number fields.



I have 2 tables I am trying to bring together in a query and perform a
calculation but I am not getting the calculation to work.

First table is a product Table (Prod ID, product name, description and a
Second table transacation table (Autonumber, Prod #, qty shipped and qty
received)

In the query I want to product name and the difference between qty shipped
and qty received? I am not getting a total to appear, I am not getting an
error either.

Any idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top