This is an easy one.
#1) If this is your primary form and you want to exit the application,
form_load()
open the database.
check if the table is empty.
If table is empty
send a message
END
end if
end sub
form_unload()
UNLOAD MAINFORM
end sub
(Note: MAINFORM in my case is the form DEMO.FRM but the name of the form
is MAINFORM.)
#2) If this isn't your primary form and you are just wanting to return to
the primary form, issue the UNLOAD when you return to the primary form.
Take care.
-Dan Swaney "The Swaynster"
_________________________________________________________________________________________
Quote:
>I know that we can not unload a form when it's loading on form_load.
>We receive an error message.
>So, what can we do when we DO wnat to unload a form when it's
>loading???
>Exemple:
>form_load()
> open the database.
> check if the table is empty.
> If table is empty
> send a message
> unload the form
> else
> continue
> end if
>end sub
--
"Go Eagles Go!"