Results 1 to 5 of 5
  1. #1
    jhjarvie is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2008
    Posts
    12

    Adding 2 Fields together..returns error if no value

    This is Driving me crazy, I am trying to add the value of 2 Fields together in a seperate field on a form, everything works fine and I get a total no problem...until one of the two fields I am adding has no value in it, then I get #Error!
    Sometimes there will be no value in one or both of the fields I cant avoid that.


    Any help??

  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
    Have you tried using the Nz() function?

  3. #3
    jhjarvie is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2008
    Posts
    12
    Quote Originally Posted by RuralGuy View Post
    Have you tried using the Nz() function?
    Wow, I Completely missed that one! thanks RuralGuy it's now working

  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
    That's great! I guess you are ready to use the Solved thread tool now, right?

  5. #5
    jhjarvie is offline Novice
    Windows Vista Access 2003
    Join Date
    Sep 2008
    Posts
    12
    Will do........

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

Similar Threads

  1. Adding 2 fields together
    By Craig Spencer in forum Access
    Replies: 2
    Last Post: 04-08-2011, 02:10 PM
  2. datasheet view adding fields drop-down box
    By techexpressinc in forum Access
    Replies: 2
    Last Post: 09-09-2009, 05:35 AM
  3. Subquery returns Memo
    By Brainmart in forum Queries
    Replies: 0
    Last Post: 03-09-2009, 07:32 AM
  4. Hard Returns v. Squares
    By Goodge12 in forum Queries
    Replies: 3
    Last Post: 01-28-2009, 10:10 AM
  5. Replies: 0
    Last Post: 06-19-2007, 09:45 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