Minimising and restoring a popup form with code

J

John Baker

I have a popup form which has a button on it to open another form which
maximises on opening.
When the button is pressed I want to hide or minimise the popup form. When
the maximised form is closed I want to then restore the popup form.
I would like to control this with VBA code. What I try does not seem to
work.
Can anyone please help?

John Baker

ps I have tried to make the popup form not visible on pressing the button
and again make it visble on closing the maximised form. However the focus
returns to another form which originally opened the popup form.
 
A

Andreas

Check the order in which you issue the commands.
If this does not resolve the problem, try using:
Forms!frmSomeName.SetFocus

Regards,
Andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top