Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Limit Number field - HELP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam - 14 May 2008 15:28 GMT
I'm trying to limit input into a field on a form who underlying table field
format is a number field formatted "general number"  and field size is
"double" - I only want the user to be able to enter a max of 2 digits in the
field, can this be done??
Beetle - 14 May 2008 15:47 GMT
You can put a validation rule in the table field of;

Between 1 And 99

If you want to allow null in the field then it would be;

IsNull Or Between 1 And 99
Signature

_________

Sean Bailey

> I'm trying to limit input into a field on a form who underlying table field
> format is a number field formatted "general number"  and field size is
> "double" - I only want the user to be able to enter a max of 2 digits in the
> field, can this be done??
John W. Vinson - 14 May 2008 17:51 GMT
>I'm trying to limit input into a field on a form who underlying table field
>format is a number field formatted "general number"  and field size is
>"double" - I only want the user to be able to enter a max of 2 digits in the
>field, can this be done??

Ummmm... why pick a datatype which allows 14 digits of precision and a range
from 10^-300 to 10^300 - if all you want is a two digit integer!?

You can use an Input Mask of "90" to force entry of one or two digits; or use
the BeforeUpdate event of the field to check the entry for allowed values and
cancel the update if it's out of range.
Signature


            John W. Vinson [MVP]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.