Results 1 to 3 of 3
  1. #1
    linjoye is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    3

    Sum of Fields

    I have a form with Amount1, Amount2, Amount3, Amount4 and TotalAmount. When I have all amount fields populated, Total/Amount field works. When amount fields are not all populated, Total/Amount shows nothing. Any suggestions?

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Hi linjoye,

    Use the Nz function.

    In your case:

    Code:
    TotalAmount:  Nz([Amount1])+Nz([Amount2])+Nz([Amount3])+Nz([Amount4])
    Cheers,

  3. #3
    linjoye is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    3

    Thanks

    It worked.

    Many thanks!

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

Similar Threads

  1. Replies: 5
    Last Post: 03-20-2010, 08:30 AM
  2. Replies: 3
    Last Post: 08-10-2009, 08:33 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