I'm not clear on what the problem is. What do you want to happen if the password validation fails? Is the problem with validating the password or what action to take if it does or does not validate? Do you want the management form to run in either case or close the app (or exit that program) if the password doesn't validate and only launch the management form if the password validates?
>So I am again trying to figure out the validation of a simple password form I have created, below is some code I was trying to get to work and since I could not make that work I stopped mid stride.....
>
>
>
>if Users.Password == PADR(ALLTRIM(thisform.txtPassword.value),LEN("Users.Password"))
> * This is a valid user
> else
> * The password is not valid
> endif
>RELEASE thisform
>DO FORM C:\HPRC\MANAGEMENT.SCX
>
>
>
>The table users only has 3 fields userid,username,password,
>
>If anyone can point me in the right direction .....
>
>
>Thanks,
>
>Fred W.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"