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
 
Back
Top