Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I: Enter a Percent, Record a Decimal

Status
Not open for further replies.

gaffonso

Programmer
Jul 26, 2001
25
0
0
US
I've got a text box that maps back to a decimal field data type in SQL Server (in an Access Project).

I'd like to offer the user the ability to type in an integer from 0 - 100 (the percent they desire) and have that be translated into the corresponding decimal value.

I can do this with code but I was hoping there was a more straightforward way to get there. Input Masks, maybe?

Thanks!

- Gary
 
Add a hidden text box on the form. Bind this to the data source holding the decimal. Unbind the other field. Set the control box of the hidden field to be the value of the first field divided by 100.

HTH

Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top