Results 1 to 6 of 6
  1. #1
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162

    ADDING Not showing results

    Hi this probably a simple one cant seem to see the problem



    I have a unbound textbox that adds up results of returned data ie:- =text386+text443+text461 this adds and displays the total fine when there is a number in each field but if one of them is displaying nothing it then doesnt give a result,

    Can anyone tell me how to fix this

    Thanks in Advance

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe the nz() function?

    nz(me.text443.value) + nz(me.text461.value)

  3. #3
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    That doesn't seem to work when i save it does this =Nz([me].[text384].[Value])+Nz([me].[text448].[Value])+Nz([me].[text466].[Value]) in the Expression Builder

    and displays #Name? in the box as a return result

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Try

    =Nz([text384],0) + Nz([text448],0) + Nz([text466],0)


    This says if [text384] is NULL, use 0 (zero).

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Can't use Me qualifier in ControlSource expression, that is a VBA feature. Also, Value is default property of data controls so it is not necessary to type it.

    Consider giving controls used in expressions more meaningful names.
    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.

  6. #6
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Thank you this works

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

Similar Threads

  1. Not all results showing in query
    By lewis1682 in forum Queries
    Replies: 3
    Last Post: 09-08-2013, 03:16 PM
  2. Query results showing table relationship
    By Steven.Allman in forum Queries
    Replies: 2
    Last Post: 04-23-2012, 01:31 PM
  3. Adding chart to a form showing inventory value
    By mayapredco in forum Forms
    Replies: 1
    Last Post: 04-21-2012, 08:37 PM
  4. Null Value prevents showing any results
    By nick.h in forum Queries
    Replies: 10
    Last Post: 12-19-2011, 07:23 AM
  5. Query showing unexpected results
    By johnmerlino in forum Queries
    Replies: 30
    Last Post: 10-25-2010, 07:08 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