>Watching this code in the debugger reveals that even when seek evaluates to false, the else clause in not executed. Am I forgetting something? I have had this problem before and band-ais fixed it with separate 'if' statements.
>
>if seek(my_name) = .T. then
> if passwords.password = my_password then
> messagebox(greeting, 0,"Log")
> do login
> thisform.release
> endif
>else messagebox("Invalid Login Attempt", 0, "Invalid")
>endif
Maybe you can try to simplify it a little bit. There is also no need to have then nor to put the command in the same line as the else.
if seek(my_name)
if passwords.password = my_password
messagebox(greeting, 0,"Log")
do login
thisform.release
endif
else
messagebox("Invalid Login Attempt", 0, "Invalid")
endif