Close Form

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

Guest

Ths is rather embarassing but here goes. When I open FormA, I want FormB to
close. What would be the OnOpen event syntax for FormA to close FormB?
Thanks.
 
Docmd.Close acForm, "FormB"

You can also close it from the code that opens FormA the
same way and save putting code in two spots.

--
Gary Miller
Sisters, OR



message
news:[email protected]...
 
Thanks Gary. Appreciate the help.

Gary Miller said:
Docmd.Close acForm, "FormB"

You can also close it from the code that opens FormA the
same way and save putting code in two spots.

--
Gary Miller
Sisters, OR



message
 

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