Rodd,
I run your first code (not the one I am replying, but your very first one) and it worked as expected, if I put a wrong password, I get the message, right password, no message. I ran it in VFP 9 though.
[update]
I remembered I still have VFP 8 installed, so I run it in VFP 8 and it also work as expected, giving me an error for wrong passwords
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges