Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2013
    Posts
    70

    Unanswered: set decimal places in expression

    =Format([txtFire]/[txtTotalCalls],"Percent") & " of Calls this Month"

    What do I need to add to this expression so that this result is set to no decimal places. I only want, ie, 24%. Access 2013 is defaulting to 23.53%. I tried:

    =Format([txtFire]/[txtTotalCalls],"Percent",0) & " of Calls this Month"

    which had no effect on the result.

    Thanks, Scott

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    either use integer division
    =Format([txtFire] \ [txtTotalCalls],"Percent") & " of Calls this Month"
    or explicitly set a format mask
    =Format(([txtFire] / [txtTotalCalls]) * 100,"##0") & "% of Calls this Month"
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Mar 2013
    Posts
    70
    Thank you so much. The second example worked like a charm. Best, Scott

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •