A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Inputting percentages in forms



 
 
Thread Tools Display Modes
  #1  
Old March 4th, 2008, 04:09 PM posted to microsoft.public.access.forms
Amy B[_2_]
external usenet poster
 
Posts: 1
Default Inputting percentages in forms

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%??
  #2  
Old March 4th, 2008, 05:51 PM posted to microsoft.public.access.forms
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Inputting percentages in forms

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."


"Amy B" wrote in message
...
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%??



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.