entering percent in textBox

  • Thread starter Thread starter Alex
  • Start date Start date
A

Alex

I have a TextBox with appeared percentage there for data
edit/entry on a continious form.

So, if it's 10% there and a user wants to enter 20% he/she
should enter 0.2 to get 20% in the TextBox.

Is there any way to allow the user to enter 20 to get 20%
in the TextBox?

Thanks
 
No, but you can allow them to enter 20 and then have a percent sign (as a
lable) next to the box on the actual form. Just remember to divide the
entry by 100 if yo uneed to use it in any math. If you want to store it in
a table and it needs to be a percent, you could have a separate field that
is bound to your 'oercentage' field. Then when the user updates the fake
percentage field (unbound) you could have code to place the figure (divided
by 100) into the bound control.

Post back if you need any clarification.

Rick B


I have a TextBox with appeared percentage there for data
edit/entry on a continious form.

So, if it's 10% there and a user wants to enter 20% he/she
should enter 0.2 to get 20% in the TextBox.

Is there any way to allow the user to enter 20 to get 20%
in the TextBox?

Thanks
 
Back
Top