Results 1 to 6 of 6
  1. #1
    gilagain1 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    2

    Replacing Null with 0

    I am running a basic query and trying to display call totals with ticket totals. My issue is when i don't have Abandon call data for a certain day it wipes out my ticket totals in the query. How do i replace the null with 0? I tried entering the following in the criteria:

    Nz([SumOfAbandon Above],"0")



    but it doesn't do anything to the results......any suggestions?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Nz([SumOfAbandon Above],0)

  3. #3
    gilagain1 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2009
    Posts
    2
    I tried that as well and it is still not displaying the row of data for the query. Any other suggestioins?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you post the SQL for your query maybe some SQL guru will see something and offer a suggestion.

  5. #5
    thhui is offline Competent Performer
    Windows XP Access 2002 (version 10.0)
    Join Date
    Feb 2009
    Posts
    235
    Sometimes, your query must be modified to have a common group id so that all data would be displayed even if some data-column is missing.

  6. #6
    CraigDolphin is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Apr 2009
    Location
    Custer, WA, USA
    Posts
    125
    Is this a case where there is data in one table, but no data in the related table, causing the unmatched records to be excluded from the set of results?
    If so, then you likely need to look into the topic of how to do an outer/left join between the two tables. Access uses an inner join by default which will exclude records without a mtach in both tables.

    Or is this where there is a null field in a table causing other fields from that same table to give erroneous results? If so then we're likely to need more details about the tables and the affected fields.

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

Similar Threads

  1. replacing dlookup fields with variables
    By msupitar in forum Access
    Replies: 0
    Last Post: 02-18-2009, 12:26 AM
  2. Replacing text in my database
    By sbrobin in forum Access
    Replies: 0
    Last Post: 02-08-2009, 02:17 PM
  3. Fill in Null values
    By Petefured in forum Queries
    Replies: 1
    Last Post: 10-06-2008, 12:54 PM
  4. HELP with NULL DateTime VALUES
    By lfolger in forum Programming
    Replies: 3
    Last Post: 03-28-2008, 02:33 PM
  5. Null vs New Record
    By jversiz in forum Access
    Replies: 2
    Last Post: 02-20-2008, 12:02 PM

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