Rule setting minimum characters for a field

Wayne Cramer

Registered User.
Local time
Yesterday, 22:18
Joined
Aug 10, 2007
Messages
93
I have an Access table with a field called Purchase Oreder Item. The field must be all numbers and the length can be from 10 characters to fourteen characters. I have no problem requiring all numeric characters with a validation rule and setting a maximum length with the input mask. The problem is requiring the minimum of ten numeric characters. The operator must enter a minimum of ten characters and no more than fourteen. Please help.
 
Data entry should be through a form and checking the Len() of the input in the BeforeUpdate event is easy.
 
Use an Input Mask here's an example:

>99LLaaaaaa;;_

First 2 characters must be numeric, the next two must be alphabetic and the following 6 are optional.

Simon
 
Glad I could help Wayne. Thanks for posting back with your success.
 

Users who are viewing this thread

Back
Top Bottom