Access Query Formula

jacobsen

New Member
Joined
Dec 16, 2004
Messages
4
Can anyone help me please.

I currently have a query that is trying to calculate the difference between two records in two other queries. The formula I am using is:

Conns: Sum([Grwthnew - Daily Summary]![Conns]-nz([Libra Input - Daily Step2]![Conns],0))

This works where the records match or where there is a record in the Libra Input - Daily Step2 query table but if it is in the first query table Grwthnew - Daily Summary noting is returned.

Is there a formula to say if the record is in the first query table but not in the second then make the second zero so it subtracts zero from the first number.

Thanks for any help.
Mark
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Do you have a Left Join from ([Grwthnew - Daily Summary] to [Libra Input - Daily Step2]? This will return all of your ([Grwthnew - Daily Summary] records even if there is not a match in the other source.

TD
 
Upvote 0

Forum statistics

Threads
1,221,832
Messages
6,162,255
Members
451,757
Latest member
iours

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top