Results 1 to 3 of 3
  1. #1
    Desy77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    1

    Post Calculated Expression not working

    I have 14 fields that I would like to add up (calculate). I entered the expressions is the table design view of one field to calculate these other fields :



    [Chris Feb 2018]+[Ash Feb 2018]+[Farah Feb 2018]+[Clude Feb 2018]+[Jen Feb 2018]+[Lekha Feb 2018]+[Kaysha Feb 2018]+[Winner Feb 2018]+[Emily Feb 2018]+[Jillian Feb 2018]+[Desyree Feb 2018]+[Mona Feb 2018]+[Sana Feb 2018]+[Kate Feb 2018]

    These fields have numbers within in them, but the calculation expression is coming up blank. No error messages at all. What am I doing wrong?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Arithmetic with Null returns null. If any field is Null the expression will return Null. Use Nz() function to deal with possible Null.

    Or better may be to normalize data
    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.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    It should be noted that your design isn't normalized, and will cause you problems in the long run. People/Months should be in a related table.

    Fundamentals of Relational Database Design -- r937.com
    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: 03-28-2018, 05:46 AM
  2. Replies: 15
    Last Post: 01-05-2018, 06:31 PM
  3. Replies: 9
    Last Post: 12-30-2014, 11:58 AM
  4. Calculated expression in report
    By Grizz2 in forum Reports
    Replies: 3
    Last Post: 12-20-2010, 08:50 PM
  5. calculated sum not working!
    By Linda Gamble in forum Access
    Replies: 1
    Last Post: 10-12-2007, 06:38 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