In the .Load Event place your test code and if it fails just issue RETURN .F.
>I would like a form to test some condition,such as, "can I open a table exclusivly and if those conditions cannot be met, simply close. Entering any or all of these lines:
>Thisform.Release
>Thisform.Deactivate
>Thisform.Destroy
>Thisform.Unload
>in the Load, Init, or Activate or a user defined method called in any of these methods has no effect at all on the form. It simply ignores them. Any suggestions?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.