Exit button

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I would like anexit button that bring up a message box to ask if i am
sure i want to exit

Can any give me the code

tAhnks

Simon
 
what you could do is build a new form called "ConfirmExit" with 2 buttons on
it... (i dont know how much you know about vb, but this is the shortcut i
would use rather then typeing all the code myself) first i would make 2
buttons, both set up to close the form... then i'd go back and edit the
properties of the onclick procedure to repeat the

DoCmd.Close

command basicly it will tell it to close the window and then to close the
other window...

make sure to relabel the buttons as yes and no or whatever and type in your
prompt of how you wanna ask "are you sure you want to close"

then all you have to do is make a button on the first form that opens the
ConfirmExit form
 

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