Minimise Access Using Code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If all my forms have been set to Modal = Yes, how can my users minimise
access. At the moment they can't.

I need the forms to be Modal = Yes, so how can I get around this.

Any help appriciated

Thanks
 
Ian said:
If all my forms have been set to Modal = Yes, how can my users
minimise access. At the moment they can't.

I need the forms to be Modal = Yes, so how can I get around this.

Any help appriciated

Thanks

Are your forms also PopUp? I don't have any problem minimizing Access
unless the form is both modal and popup. If so, what circumstances
require your forms to be popup and modal?
 
The main reason was to stop users from being able to click the close button
on the title bar. Is there a way of allowing users to use the minimise
button, but not the close button.

Thanks
 
Ian said:
The main reason was to stop users from being able to click the close
button on the title bar. Is there a way of allowing users to use the
minimise button, but not the close button.

You mean the application's close button? You can control whether the
application closes, if you want to, by opening a hidden form when the
application opens, and cancelling that form's Unload event unless
certain conditions are met -- for example, unless the user has clicked
*your* button to close the application. Personally, I don't hold with
preventing users from closing the application, though I may want to know
when they do it so that I can run certain procedures. The Unload event
of a hidden form works well for that, too.

I think there may be a way you can use the Windows API to remove the
close ("x") button from the Access application window, but I've never
tried it and don't intend to.
 
Back
Top