Results 1 to 4 of 4
  1. #1
    MEMFBI is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Apr 2020
    Posts
    45

    Issue with fixed decimal positions in calculations of qry

    Hello


    I have an update qry to a table with a field named GASCST defined as Number/Double/Fixed/3 decimal places.
    When I view table the field displays as .001, but when I click on the field it displays as .00057. I need to use this field in later calculations to be .001, but in the later calculations it is using .00057.
    How can I keep this field at .001?

    Data example:
    MGCP10 = .3 VOLP00 = 19
    GASCST=((Round([MGCP10]/100,3)*[VOLP00]/100)) displays .001 but when used in the next calculation it is using .0.00057

    Thank you








    Thank you

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Try rounding the result instead of just one multiplier.

    GASCST=Round([MGCP10]/100*[VOLP00]/100,3)

  3. #3
    MEMFBI is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Apr 2020
    Posts
    45
    Perfect.
    How simple

    Thank you

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Glad to help. Good luck with the project!

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

Similar Threads

  1. Replies: 2
    Last Post: 11-16-2015, 08:13 AM
  2. Field Positions
    By MaineLady in forum Access
    Replies: 3
    Last Post: 07-25-2015, 05:18 AM
  3. Replies: 2
    Last Post: 10-06-2014, 06:34 PM
  4. Convert decimal comma to decimal point
    By Hans Karlsson in forum Programming
    Replies: 3
    Last Post: 06-30-2014, 01:56 PM
  5. Format decimal numbers with fixed width
    By Persist in forum Programming
    Replies: 5
    Last Post: 07-14-2010, 05:43 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