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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Form from Command Button 1

Status
Not open for further replies.

BLutgen

Technical User
May 25, 2001
47
US
I am running a database using switchboards. I have the command buttons set up ok to open up the next form. However, is there a way to close the previous form when I move on to the next, all from that same button? My On Click opens the next, but can I add something in or change something that also closes the current form? Thanks a lot.

Brad
 
DoCmd.Close acForm,"FormName"

B-) ljprodev@yahoo.com
ProDev
MS Access Applications
 
You can also do any of this from macros. I have done this many times. I know you have the solution, but this is another option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top