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

    Math error in calculated field

    I am trying to create a simple Query that takes one column and multiplies each item by .05
    Culumn name [Amount]

    I input the following

    nz([Amount]*.05,0)



    It appears to work on all amounts except for 80
    it outputs .45 instead of 4

    Am I doing something wrong or is there a better way to do this.

    I tried changing it to .04 and it does the same thing except with 50 it changes to .25 instead of 2.5

    If anyone has any ideas or suggestion to help a new access user would be greatly appritiated
    Thanks in advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Computers are pretty good at doing math. I can't imagine Access would make that mistake. Can you post the db here, or a representative sample?

    I changed the title of your thread to something more meaningful to future users.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    That looks suspiciously like a format problem, rather than the math. Do you have a Format set for that query field? If so, try deleting it and running the query.

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

Similar Threads

  1. Calculated field #Name? error
    By Huddle in forum Access
    Replies: 9
    Last Post: 03-30-2014, 11:35 AM
  2. Replies: 5
    Last Post: 09-17-2010, 09:48 PM
  3. calculated field from calculated field?
    By RedGoneWILD in forum Reports
    Replies: 5
    Last Post: 08-03-2010, 02:32 PM
  4. Calculated field
    By nashr1928 in forum Forms
    Replies: 3
    Last Post: 07-22-2010, 05:10 AM
  5. simple math coding for form field??
    By RCBNewbee in forum Programming
    Replies: 7
    Last Post: 07-13-2009, 08:30 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