Brian Dunning's FileMaker Custom Functions

AutoPct ( myValue )

Simplifies data entry of percentage values

  Average rating: 3.7 (3 votes) Log in to vote

Edward L. Scott   Edward L. Scott
Scott Resources
https://scott-resources.com

Share on Facebook Share on Twitter

  Sample input:
AutoPct ( 1 ) or ( -1 )
AutoPct ( 10 ) or ( -10 )
AutoPct ( 99 )
AutoPct ( 100 )
--
AutoPct ( .999 ) or ( -.999 )
  Sample output:
1% or -1%
10% or -10%
99%
100%
--
99.9% or -99.9%

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

For a user-entered number field formatted in the user interface as a percentage, set the field to auto-calc to "AutoPct ( myValue )" while turning OFF the option to "Do not replace existing value in field (if any)".

Now users may avoid doing math in their head and simply type in "50" to enter 50% in the field, "100" to enter 100%, or "2.5" to enter 2.5%.

Users who cannot break the habit of typing in ".5" for 50% are not affected.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.