H
Howard Jacobs
The following code on a button click event is causing me problems:
intX = MsgBox("Before close", vbOKOnly)
DoCmd.Close acForm, Me.Name
intX = MsgBox("After close", vbOKOnly)
BOTH message boxes display sequentially. Why doesn't processing stop
at the "close form"?
What actually happens is that processing comtinues until another close
is encountered. At this point, it seems to me, the first close
closes the form and the second one closes the database, leaving me
with an empty Access desktop.
There is the standard On Error staement at the start of the
subroutine.
intX = MsgBox("Before close", vbOKOnly)
DoCmd.Close acForm, Me.Name
intX = MsgBox("After close", vbOKOnly)
BOTH message boxes display sequentially. Why doesn't processing stop
at the "close form"?
What actually happens is that processing comtinues until another close
is encountered. At this point, it seems to me, the first close
closes the form and the second one closes the database, leaving me
with an empty Access desktop.
There is the standard On Error staement at the start of the
subroutine.