Form set focus

alpapak

Registered User.
Local time
Today, 15:01
Joined
Apr 3, 2006
Messages
64
i have a db with many forms.
i want to set focus or better always on top the last open form
example:
the forms are open like this

mainform
2form
3form
4form

i want to set focus or always on top 4form
if 4form close the next form is 3form
if 3form close the next form is 2form
if 2form close the next form is mainform

thxs
 
alpapak said:
i have a db with many forms.
i want to set focus or better always on top the last open form
example:
the forms are open like this

mainform
2form
3form
4form

i want to set focus or always on top 4form
if 4form close the next form is 3form
if 3form close the next form is 2form
if 2form close the next form is mainform

thxs

Add a OnClose Event to each form such that

Code:
Forms[form name of form you want to have focus if this form is closed].SetFocus
 
look up 'popup' and 'modal' in help and see if that helps

Peter
 

Users who are viewing this thread

Back
Top Bottom