Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Screens

Status
Not open for further replies.

fabby1

Technical User
Mar 9, 2004
206
GB
HI

I have 12 screens with have a button which takes them all back to the main switchboard where there is an exit button.

On each screen in the top right is the X close button, how can I if the user presses this button exit the database. At the moment when you press is it closes the screen but you are still left in Access in the design window.

Thanks

Phil
 
Hi

Why not

get rid of the X, by setting the .CloseButton Property to false

Put a button on the form with (Say) quit as caption, in the onclick event of that button put Application.quit

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ken

Thanks Pal, your right that is one option butI would like to keep it clean and buttron free if possible, if not then I will use you suggestion

Thanks

Phil
 
Hi

If you want to make it impossible to go back to the main menu, just put Application.quit in teh Unload event of each form, but I did not think that was your intention

without a button how do you tell the difference between

"I want to close this form and go to menu"

and

"I want to quit"

?

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Hi

If you want to make it impossible to go back to the main menu, just put Application.quit in teh Unlod event of each form, but I did not think that was your intention

without a button how do you tell the difference between

"I want to close this form and go to menu"

and

"I want to quit"

?

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Thanks Ken

Did what you originally sugessted

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top