entering percent in textBox


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
 
Ad

Advertisements

R

Rick B

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
 
Ad

Advertisements


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