Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum function only works when BOTH columns have a value

Status
Not open for further replies.

Tasca

Technical User
Apr 24, 2005
15
GB
Hi

I have a query that has amounts in two columns. What I am trying to do is add a 3rd column which shows the total. However, the function only works if BOTH of the columns have a value. If only one column has a value the total column returns a null......

I am using

Total: [SumTC]![SumOfAmount]+[SumChAgreed]![SumOfAmount]

built using the Function Wizard in Access to add the two columns where SUMTC and SumChAgreed are 2 copies of a query which have different filters on the same table to get the values and SumOfAmount in both is the total sum for each element within the tables.
 
:( Knew that was too good to be true, had no effect. Thanks for the prompt response
 
Ooops!!!


Sorry my mistake that DID work. Thanks very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top