Exit from each form replicating the small red box at top right cor

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

Guest

s there a way to add a similar looking "X in the small red box" at the top
right hand corner of each of my forms, so when selected, it would Exit the
user back to the Main Menu? Would I just create an object and attach an
Event Procedure-"On Click" to it?

Thank you!
 
I guess you are talking about a borderless form. just add a command button
and put an X as the caption, bold red, size the button to the size you want.
The event procedure on click would be docmd.close to exit the form. If you
are using borderless forms, you may have to assign a location on the screen
using MoveSize.
 
It worked! Thanks.

Damon Heron said:
I guess you are talking about a borderless form. just add a command button
and put an X as the caption, bold red, size the button to the size you want.
The event procedure on click would be docmd.close to exit the form. If you
are using borderless forms, you may have to assign a location on the screen
using MoveSize.
 
Is there a better way to somehow keep the minimize, maximize and close out X
buttons on each form? Then I wouldn't need to build the close out X on each
form. Most of the forms are borderless, so not sure how to build it to
display like it fits onto the screen.
 

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

Back
Top