switchboard

M

Michael Hanlon

I am working on a database that has many switchboards. I have the main
switchboard that works but i need to now how to close the main switchboard
when the other switchboard has been called.

so i can open a form in code docmd.openform " switchboarda", acnormal
how do i close the switchboard main.

any help thanks

mike
 
G

Graham Mandeno

Hi Michael

Use DoCmd.Close to close a form (or any object):
DoCmd.Close acForm, "switchboard main"

You might also consider making it invisible, so when you go back to it
everything is as before:
Forms("switchboard main").Visible=False
or, if this code is within [switchboard main] itself:
Me.Visible=False
 

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

Top