Results 1 to 2 of 2
  1. #1
    Orozvik is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    3

    Cool sum blank cells into query total

    HI,
    interesting one here. See if anyone can help. I'm washed up at this point.

    I have cross tab query results in a table. There are sales columns across the top, one for each month or 12 in total. These are rows of sales data...say parts. Well, some of the parts weren't sold during certain months and thus there are no values in the related month field and row cell. When i create a column in my query which utilizes this table to sum up each of the twelve months, it only returns a value for where there is a value in every month field. In otherwords, where there is a blank for any given month, it will not provide a total. Example. We sold widgets in only two months last year. February @ 50 and December @100. All other months show a blank across this row. IN the query, i would expect the total field which states in teh build fuction to add each column as in [01]+[02]+[03]...etc....to return 150, but the buger leaves the total blank. What is up with this?



    Can you help? thx.

  2. #2
    Sibtain is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Karachi
    Posts
    15
    Encapsulate the Sum method within the decode function and convert the null value to zero it will resolve the issue

    Regards

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Query to figure out null cells.
    By chrisfl in forum Queries
    Replies: 1
    Last Post: 04-23-2013, 03:07 PM
  2. fill blank cells of duplicate records
    By deso in forum Queries
    Replies: 3
    Last Post: 03-28-2013, 07:59 AM
  3. Criteria to find when cells are blank
    By Badvgood in forum Queries
    Replies: 3
    Last Post: 12-06-2011, 06:14 PM
  4. Replies: 2
    Last Post: 08-29-2011, 07:16 AM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums