Results 1 to 4 of 4
  1. #1
    EWIG is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    2

    using calculations in queries

    Hi,


    Can a calculation field be created to add a selection of data? I have 7 colomun headings and need to add only some but the calculation I am writing is changing as I add a new field e.g Potential Completion:[current]+[left] is returning a result but as soon as I add a further +[suspended] the result I had previously is disappearing and only the rows with all current left and suspended are being calculated. any ideas?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Arithmetic with Null results in Null. If Null is possible, handle with Nz()

    Nz([current],0) + Nz([left],0) + Nz([suspended],0)
    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
    EWIG is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    2
    Oh my goodness was it that simple, All sorted.
    I wonder if that total can be shown as a percentage figure? calculation I currently have is: Potential Completion: Nz([current],0)+Nz([left],0)+Nz([suspended],0)+Nz([left compl pass],0)+Nz([susp abeyance],0)+Nz([susp break],0)+Nz([susp debt],0)

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    A percentage of what? Is each of those values already a percentage (or a decimal)?
    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.

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

Similar Threads

  1. Time Calculations
    By donnan33 in forum Access
    Replies: 3
    Last Post: 08-29-2013, 10:31 AM
  2. calculations
    By DariusD in forum Access
    Replies: 3
    Last Post: 01-01-2013, 07:22 PM
  3. Replies: 1
    Last Post: 10-08-2012, 03:35 PM
  4. calculations??
    By richrit in forum Access
    Replies: 1
    Last Post: 04-11-2012, 05:06 PM
  5. Date calculations
    By NOTLguy in forum Access
    Replies: 10
    Last Post: 10-09-2010, 06:41 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