Results 1 to 3 of 3
  1. #1
    Scorpio11 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2010
    Location
    Cape Town, ZAR
    Posts
    36

    Angry Expression rounding

    Can someone please tell me something that is irritating..

    I have created a query where there is a simple iif formula, where 1 condition, amount from 1 cell is pulled, in, second condition brings in a different cell.

    Now in both cells, the amounts being pulled in only have 2 decimals - i have checked. but the expression result has put in something like 12 decimals after it eg: my cell - 12.15, the expressions result is 12.150013513579613 - it is like the query is making numbers up for the heck of it - and to crown it off, the Round expression is impotent. The plethora of decimals remain. Formatting is good for a surface effect, however the decimals are starting to mess with formula further on.

    Can someone please explain this to me or tell me what i am doing wrong with the rounding or the expression.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    Perhaps you could show us the expression that is so irritating.
    Also and Dim statement or definitions for the fields/variables involved.

  3. #3
    Scorpio11 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2010
    Location
    Cape Town, ZAR
    Posts
    36
    Apologies for not posting a reply sooner....

    The expression is as follows:

    Cost: IIf([Type]="Purchase",[Amount]),[COS])

    There is nothing else involved. The [Amount] and [COS] fields come from a table where I input data.

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

Similar Threads

  1. Rounding up decimal place
    By swagger18 in forum Programming
    Replies: 4
    Last Post: 01-28-2011, 08:29 AM
  2. rounding digits
    By giladweil in forum Access
    Replies: 1
    Last Post: 09-01-2010, 03:11 AM
  3. Rounding problem
    By jgelpi16 in forum Queries
    Replies: 1
    Last Post: 04-06-2010, 10:27 AM
  4. Rounding off
    By Alex Motilal in forum Access
    Replies: 4
    Last Post: 12-20-2009, 12:47 PM
  5. Rounding the Average in a Query
    By jakelufkin in forum Access
    Replies: 3
    Last Post: 06-19-2009, 08:31 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