Results 1 to 3 of 3
  1. #1
    seageath is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    6

    Displaying Zero Values from Queries

    Hi all,



    I have problem displaying the queries from the tables below, which I have 3 tables (Project, Period and Transaction) with the following schema

    Table Project
    - ProjectID
    - ProjectName

    Table Period
    - PeriodID
    - Month
    - Year

    Table Transaction
    - TransactionID
    - ProjectID (FK)
    - PeriodID (FK)
    - Transaction Value

    The problem is I want to display all the transaction (with / without values) for every project and every period, so far all I got was transactions with values, I couldnt pull out the transaction without values, therefore I failed creating pivot table for the transaction.

    I know it's simple but it's killing me

    Please help to advise.

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    If a transaction value is null, I believe the record will be ignored.

    In your query, insert a calculated field
    TranVal: Nz([Transaction Value],0)
    and see if your problem disappears. You will need to change any later references to Transaction Value to TranVal.

  3. #3
    seageath is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    6
    Quote Originally Posted by hertfordkc View Post
    In your query, insert a calculated field
    TranVal: Nz([Transaction Value],0)
    and see if your problem disappears. You will need to change any later references to Transaction Value to TranVal.
    Thanks, although the result didn't reflected in query result but I managed to display the empty value using pivot table.

    Case's closed for now, once again everybody happy

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

Similar Threads

  1. displaying the number of each values
    By hklein in forum Queries
    Replies: 3
    Last Post: 09-02-2011, 09:27 AM
  2. Displaying Multiple Values, Storing One.
    By greatfallz in forum Forms
    Replies: 10
    Last Post: 08-02-2011, 01:18 AM
  3. Displaying Queries Correctly
    By cgjames in forum Reports
    Replies: 0
    Last Post: 01-18-2011, 06:54 PM
  4. Replies: 9
    Last Post: 12-13-2010, 09:25 PM
  5. Displaying queries
    By FadingAPE in forum Access
    Replies: 3
    Last Post: 10-12-2010, 09:10 AM

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