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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input Validation Help. NO DECIMALS

Status
Not open for further replies.

Chuck712

Technical User
Mar 1, 2002
133
US
Anyone have an idea as to how to stop users from entering fractions, or decimals into a field. I have queries that run against a table that must have whole numbers, no decimal. It is a calculation for years and I want them to round off. I would like to put in a validation rule that will not allow 2.5 year, when it should be just 2 years
Any help?
 
Say your text box control is named "txtYears". The following Validation Rule will work:
InStr([txtYears].[Text],".")=0 Rick Sprague
 
Put this in the input mask for the field:

0000


Nothing but 4 digits allowed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top