Results 1 to 4 of 4
  1. #1
    zero3ree is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2010
    Posts
    39

    Ignore blank on query expression.

    I have some expressions built to calculate totals in a query. Here is the first

    Engineer Total: [Engineer Hrs]*[Engineer rate].

    This works when a user adds hrs to a table and the rate is a default number.

    Then a total from 4 totals similar to the Engineer total are added together here:

    Total Rate: [Designer Total]+[Quality Total]+[Coordinator Total]+[Engineer Total].

    Works perfect if all 4 Hrs fields have data. The problem is not every entry will have hrs in each field

    when this happens the Total rate does not calculate. So long story short, how do I make the Total rate bypass



    the blanks or do I need to make the Engineer total force a zero on blanks?

    Thank in advance for advice.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Check out the Nz() function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    zero3ree is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2010
    Posts
    39
    Quote Originally Posted by pbaldy View Post
    Check out the Nz() function.
    Thank you that looks like what I need. I assume I need to add this to each of my Hrs fields?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Yes, around each field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 7
    Last Post: 05-02-2012, 08:04 AM
  2. How to Ignore Err 2501
    By Jojojo in forum Reports
    Replies: 3
    Last Post: 11-11-2011, 06:30 PM
  3. ignore delete error
    By smahdih in forum Access
    Replies: 1
    Last Post: 11-05-2011, 03:42 PM
  4. Ignore last two digits in formula
    By anstasija in forum Access
    Replies: 6
    Last Post: 11-02-2010, 08:57 PM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 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