Results 1 to 4 of 4
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Subtraction with decimals


    I'm trying to do some simple calculations. In order to use decimals, I used DOUBLE instead of LONG INTEGER on my table. When I tried to subtract, I got some very strange answer (scientific?) Adding worked with no problems at all. Subtracting seems to be a problem. Any ideas?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    If you don't need long decimals, use Currency. It'sIt's only has 4 decimals.
    and if its not money, you can turn off the dollar sign.

  3. #3
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Thanks. I didn't think of that. How do I turn off the dollar sign?

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    The scientific expressions often happen when the width of the field is not wide enough. Also when there are data problems. I wouldn't use Currency unless it is actually currency and never on a table, only in forms/reports. It is just a way of showing the data to you, it has nothing to do with what is really stored.

    Make a query that displays the fields you are using in the calculations, then look to see which ones are causing the problem and visually make a determination as to why it is happening. Don't use formatting on any of the fields, display them as they are stored on the table.

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

Similar Threads

  1. Subtraction in an Aggregate query
    By JimO in forum Queries
    Replies: 3
    Last Post: 07-10-2016, 06:22 PM
  2. Subtraction Problem
    By Alex Motilal in forum Queries
    Replies: 2
    Last Post: 03-05-2016, 09:07 AM
  3. quary addition subtraction
    By agyapong isaac in forum Queries
    Replies: 2
    Last Post: 12-28-2012, 12:07 PM
  4. Subtraction of Two Fields
    By shafi_sunshine in forum Queries
    Replies: 5
    Last Post: 12-09-2012, 07:01 AM
  5. subtraction between records
    By JJCHCK in forum Programming
    Replies: 5
    Last Post: 10-11-2011, 12:57 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