Sum column comes up blank

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to add a field to my query which totals three other fields. My
column keeps coming up blank, even though there are values in the three
fields it is suppose to total.
My Exprs is:
Expr1: [PRICE]+[Adj]+[Prog_Adj]

This query is based on another union query, which in turn is based on 3
tables that are excel links. The union query works fine, however any attempt
I make at adding a column to total 3 other values in either this union query,
or another query based on it, does not.

I have created a 'dummy' query based on another simple query, with just a
few fields and did a total column and it worked fine. I'm quite new to
access and I wanted to be sure I was doing it right before I posted here.
The dummy query produces and answer in the column with 3 fields added.

My real query has over 20,000 rows, and 20 columns. I wouldn't think the
size would matter.

Other suggestions I can check?
 
Two issues:
a) Any nulls will generate a Null outcome.
b) Access frequently misunderstands the data type of calculated fields.

To solve both issues, try:
CCur(Nz([Price],0)) + CCur(Nz([Adj],0)) + CCur(Nz([Prog-Acj],0))

More info:
Calculated fields misinterpreted
at:
http://allenbrowne.com/ser-45.html
 
Try this. Expr1: =nz([PRICE])+ nz([Adj])+ nz([Prog_Adj])
Sometimes the "non-zero" addition solves null problems.
 

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

Similar Threads

DSum Problem 7
DSum Problems 2
Inserting blank columns into query 4
SUM in a UNION query 2
Union query 2
Union Query - Group & Sum 1
Query to display highest totals 1
Split data in field on character return 0

Back
Top