Option for Two Decimal

G

Guest

Is there a simple setting that will allow a user to only enter two digits
after the decimal in a text box. It should allow them to enter as many
digits before the decimals. Thanks for any help.
 
J

John W. Vinson

Datatype to integer-double in table design

Ummm... There is no such datatype, Maurice. Did you mean Double? If so that
doesn't restrict it to two decimal places - more like fourteen.

John W. Vinson [MVP]
 
J

John W. Vinson

Is there a simple setting that will allow a user to only enter two digits
after the decimal in a text box. It should allow them to enter as many
digits before the decimals. Thanks for any help.

You can use an Input Mask

"999999999999999.00"

using a Currency datatype (not any sort of Number); or you can (with A2002 or
later) use a Decimal datatype and specify the size of that decimal.

John W. Vinson [MVP]
 
G

Guest

Hi John,

Yes I meant Double and you're right it doesn't restrict to two decimals.
Should have read more carefully to see that Lamar needed a restriction to two
decimals. Thank you for pointing it out to me..

Maurice
 

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