Results 1 to 3 of 3
  1. #1
    gcgoode is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    31

    Round Function

    If I had my query set up like this
    Code:
    SELECT Avg(Rate.TotalPremium) AS AvgOfTotalPremium
    FROM (Policy INNER JOIN Driver ON Policy.RecordID = Driver.PolicyLinkID) INNER JOIN Rate ON Policy.RecordID = Rate.PolicyLinkID
    WHERE (((Driver.Age)>40)
    );
    But I wanted to insert a round function to round the AvgOfTotalPremium to 2 decimal points, how would I do that?



    Any help would be appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Switch query to SQL View and type in the Round() function: Round(Avg(Rate.TotalPremium),2)

    Or set rounding with property sheet in query design.

    Or set rounding in textbox on report.
    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
    gcgoode is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    31
    Thanks that worked!

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

Similar Threads

  1. Always Round Up (Never Down)
    By Derrick T. Davidson in forum Queries
    Replies: 3
    Last Post: 07-23-2013, 10:08 PM
  2. Round up issue?
    By Hammer in forum Access
    Replies: 3
    Last Post: 12-13-2012, 12:46 PM
  3. round up
    By Rhubie in forum Access
    Replies: 1
    Last Post: 08-29-2012, 05:14 PM
  4. Help! - Going round in Circles
    By Sleepymum in forum Database Design
    Replies: 11
    Last Post: 02-01-2011, 09:15 AM
  5. Round Up/Down 4 Decimals to 2
    By newbie in forum Access
    Replies: 6
    Last Post: 10-18-2010, 02:58 PM

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