Results 1 to 2 of 2
  1. #1
    GCLIFTON is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2016
    Posts
    84

    Query to round sum one for one and one to many

    How would you write this in sql to get the same results. I have one data dump
    '



    =IF(ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)=0,"Zero")

    =IF(AND(ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)>-5,ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)<0),"Less 5",IF(AND(ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)>0,ROUND(SUMIFS([Amount],[Financial Complex],[@[Financial Complex]]),2)<5),"between zero and 5","Not between -5 and 5"))

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    just build a normal query, then right click the field, and set the format([field],2)

    or ROUND([field])

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

Similar Threads

  1. Round up to hundreds into a query
    By matteozz in forum Queries
    Replies: 3
    Last Post: 07-01-2015, 01:46 PM
  2. Always Round Up (Never Down)
    By Derrick T. Davidson in forum Queries
    Replies: 3
    Last Post: 07-23-2013, 10:08 PM
  3. Round up issue?
    By Hammer in forum Access
    Replies: 3
    Last Post: 12-13-2012, 12:46 PM
  4. round up
    By Rhubie in forum Access
    Replies: 1
    Last Post: 08-29-2012, 05:14 PM
  5. Help! - Going round in Circles
    By Sleepymum in forum Database Design
    Replies: 11
    Last Post: 02-01-2011, 09:15 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