Inputting percentages in forms

A

Amy B

I have a form where the user needs to enter a percentage. Currently it's
formatted as a a percentage, so if the value needs to be 10% the user has to
enter 0.1. Is there any way I can format that field so the user can input 10
and have it be 10%??
 
A

Al Campagna

Amy,
Use the AfterUpdate event of that field to run the following code...

Private Sub YourPctField_AfterUpdate()
YourPctField = YourPctField / 100
End Sub
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top