Validation Rule for minimum/maximum range (1 Viewer)

Smokeeater

Registered User.
Local time
Today, 11:44
Joined
Jan 15, 2009
Messages
58
I have a password field in a table, where I want to establish a validation rule for the minimum (6) and maximum (10) number of characters that it must be. Also, the field should be only alphanumeric. Is this possible?
 

PaulJR

Registered User.
Local time
Today, 16:44
Joined
Jun 16, 2008
Messages
133
You can certainly set the maximum field in the table design.

If you require a minimum and maximum, I think you will have to add some code to check the string length falls within these limits when it is entered. This would be fairly straightforward to do if the password is entered in a form.
 

Smokeeater

Registered User.
Local time
Today, 11:44
Joined
Jan 15, 2009
Messages
58
The Access database is the back-end of a web page, so even though the user is adding their password into a form, its a web form. So I will need to do some research on setting the criteria in the web form itself.
 

PaulJR

Registered User.
Local time
Today, 16:44
Joined
Jun 16, 2008
Messages
133
Had another look at the table properties, and you could add a validation rule something along the lines of:

Like "??????" Or Like "???????"

this would allow 6 or 7 digits. This can be expanded to cover between 6 and 10.
 

Users who are viewing this thread

Top Bottom