Hiding forms

M

Mike

I have a DB that uses several forms to navigate. Once the
user chooses an option I want to hide that form and go to
the next one. I do not want them to be able to change
screens without using my navigation buttons on the form. I
know that there is code to hide the form I just do not know
what it is. Please Help!!
Thanks
Mike
 
R

Rick Brandt

Mike said:
I have a DB that uses several forms to navigate. Once the
user chooses an option I want to hide that form and go to
the next one. I do not want them to be able to change
screens without using my navigation buttons on the form. I
know that there is code to hide the form I just do not know
what it is. Please Help!!
Thanks
Mike

Me.Visible = False
DoCmd.OpenForm "NextFormName"

To return...

DoCmd.Close acForm, Me.Name
Forms!NameOfForm.Visible = True
(DoCmd.OpenForm would also work)
 

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