Results 1 to 2 of 2
  1. #1
    cdnicholson is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2015
    Posts
    1

    Crosstab Column Headings and "0" for null values

    Hello -



    I have a simple crosstab query:

    Field: Operator
    Total: Group By
    Crosstab: Column Heading

    Field: Driver
    Total: Group By
    Crosstab: Row Heading

    Field: Cat1
    Total: Group By
    Crosstab: Row Heading

    Field: DriverAging: Nz(Avg(Date()-[tbl_drivers].[relstartdate]),0)
    Total: Expression
    Crosstab: Value

    First problem... all the column headings are reflecting "Aging", not the Operator value

    Second problem... The results are producing "0" for null values if SOME of the values in the row or column are null, but if ALL of the values in a row or column are null, that row or column is missing. And since all the column headings are "Aging", not the Operator value, I have no idea which Operator has no Drivers...


    Thank you in advance for any help you can provide.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-22-2015, 10:30 AM
  2. Create a "Totals" row for each column in crosstab
    By accessnewbie352 in forum Queries
    Replies: 13
    Last Post: 01-06-2015, 12:28 PM
  3. Replies: 3
    Last Post: 04-15-2013, 07:09 AM
  4. Replies: 3
    Last Post: 05-08-2012, 05:01 PM
  5. Passing criteria "NULL" or "IS NOT NULL" to a query
    By SgtSaunders69 in forum Forms
    Replies: 1
    Last Post: 12-24-2011, 02:22 AM

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