CODE FOR CLOSING THE FORM WHILE OPEN ANOTHER FORM

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HELLO,
I WOULD LIKE TO GET THE CODE FOR CLOSING THE CURRENT OPEN FORM
WHEN WE OPEN ANOTHER FORM IN A DB.
THANK YOU
 
docmd.Close acForm,"frmMyForm"

Also, please don't use all caps when posting. This is the E-equivalent of
shouting. Thanks,
 
HELLO,
I WOULD LIKE TO GET THE CODE FOR CLOSING THE CURRENT OPEN FORM
WHEN WE OPEN ANOTHER FORM IN A DB.
THANK YOU

Please don't use all caps when posting. It's considered shouting, and
none of us like to be shouted at. Thanks.

DoCmd.OpenForm "OtherFormName"
DoCmd.Close acForm, Me.Name
 

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

Back
Top