You've got it backwards. If you close the current form, you can't open
anything from it.
BTW, you need to set your computer's clock. It is running slow.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
> Not sure I'm reading from the same page but how about;
> writing the code for the command button on click to be
[quoted text clipped - 3 lines]
> --
> DigiVampPosted from - http://www.officehelp.in
Rick Brandt - 18 Dec 2005 17:29 GMT
> You've got it backwards. If you close the current form, you can't open
> anything from it.
Actually you can issue the DoCmd.Close first and any code lines that follow it
are still executed.

Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
S Kahn - 18 Dec 2005 18:18 GMT
Thanks all, works great.
S. Kahn
Arvin Meyer [MVP] - 19 Dec 2005 03:17 GMT
> Actually you can issue the DoCmd.Close first and any code lines that follow it
> are still executed.
Right you are. This obviously must be an exception to the general rule of VB
and VBA supposedly executing sequentially, with each statement finishing
before the next starts. I tried adding a delay loop between statements to
see if it would react as expected. It still finishes. Good catch.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access