Results 1 to 5 of 5
  1. #1
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101

    Formatting a calculated field

    I have used the following expression to calculate BMI (Body-mass index): [Weight]/([Height]/100)^2

    It works, however, it creates the value with a large decimal e.g. 25.33333333. I want the decimal places to be limited to one e.g. 25.3.

    I tried changing the 'Decimal places' under the 'Field properties' to 1. But it is not working.



    What should I do?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    It should work.
    if a query, rt-click the column, set the format, 0.00

    if a form, set the box to FIXED ,and 2 decimals.

  3. #3
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    The decimal places in field properties did not work at all.

    I finally solved it in the datasheet view > Fields > Formatting > decrease decimals

  4. #4
    SuperAccessNinjas is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2016
    Posts
    8
    I'm pretty sure setting the format property for the field to standard in query design would work as well.

  5. #5
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    @ranman256

    Your method worked as well! Thanks!

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

Similar Threads

  1. Replies: 5
    Last Post: 10-03-2014, 11:19 AM
  2. Calculated Field Formatting
    By RJC in forum Access
    Replies: 8
    Last Post: 08-17-2013, 07:56 AM
  3. Replies: 3
    Last Post: 11-20-2012, 11:14 PM
  4. Replies: 5
    Last Post: 12-10-2011, 11:49 AM
  5. Formatting a Calculated Field
    By e_lady333 in forum Queries
    Replies: 0
    Last Post: 03-17-2010, 06:11 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