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

close form

Status
Not open for further replies.

rjoshi2

Programmer
Sep 10, 2002
110
US
What I would like to due in my program is when a person open form or table it close all the other form or table that are open. Then when a person close the current form or table that he is working in then my program open up the switchboard (i.e. this will only let one form or table be open at once). My question is how can due this any suggestion would be helpful.

Thank You,
rjoshi
 
Accordign to your requirements, you will onyl be able to have one form (or table) open at a time. With forms and reports, it is pretty simple. I don't even no if it can e done with opening the table, but just create a form based off the table and you have fixed that too....

In the unload property for each form, put

DoCmd.Close
DoCmd.OpenForm "Switchboard"

In the onlick event for each button on the switchboard, put

DoCmd.Close

before the DoCmd.Open line

You will probably need to remove the tables buttong if you are using a default switchboard created by the Switchboard wizard. Like I said above, just make a form (if one doesn't exist) for each table and put a button identical to the other form buttons in your database. If we knew what it was we were doing, it would not be called research, would it? - Albert Einstein [atom]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top