Close Form

M

MBoozer

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.
 
G

Gary Miller

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]...
 
M

MBoozer

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

Top