Calculate length of string

sstasiak

Registered User.
Local time
Today, 01:56
Joined
Feb 8, 2007
Messages
97
I have an unbound textbox in a form that accepts a password. When submitted, I want length of the password to be evaluated. If the number of characters is equal to 8, then the process should proceed. If it's less or more than 8, then a message box will pop up saying the length is incorrect.

Pseudo-code:

If(#charactersinTEXT2 = 8) then
run code to proceed with password change
Else
Msgbox "Your new password must be exactly 8 characters long"

Can anyone tell me what the code would look like for the if condition?
 
do a search on using the len function
that will give u your answers!
 

Users who are viewing this thread

Back
Top Bottom