>>This is true. But since the login form is the first form to show (before any menus or the VFP screen itself), it's going to require a second READ EVENTs.
>
>Hmmm, why do you say "the VFP Screen itself"? Maybe I missed something in his posted code...
No, I'm probably not technically correct - if you show a form, even as a top-level, do you still have a _screen object? But for that matter, why even show the main VFP screen if the login fails?
If the form is changed to top-level AND a second read events is put in then it will probably do what is required. Anyway, that's how I'd do it.
Dan LeClair
www.cyberwombat.comSET RANT ON - The Wombat BlogLife isn’t a morality contest and purity makes a poor shield. - J. Peter MulhernDisclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.