D
Daniel Magnus Bennét Björck
Hi!
I have an upgrade form which replaces forms in the current database with new
versions from another database. However, when I try to delete an old form
using DoCmd.DeleteObject, I get an error message saying that the form is
still open; even though I've used DoCmd.Close on it, and it does indeed fire
and complete the Close event on that form, and it doesn't show on the screen
anymore, and an IsFormLoaded function I've picked up somewhere does also say
that it is indeed closed.
As long as the form hasn't been previously opened, it works fine. Is there
something I'm missing about closing forms? For instance, two forms I'm
particularly having problems with are using Timer events, could it be that
they are still running in some form even though the form is closed?? Or
could there be some problem with DeleteObject, in which case, is there
another way of deleting forms I could try??
Brgds
Danny
I have an upgrade form which replaces forms in the current database with new
versions from another database. However, when I try to delete an old form
using DoCmd.DeleteObject, I get an error message saying that the form is
still open; even though I've used DoCmd.Close on it, and it does indeed fire
and complete the Close event on that form, and it doesn't show on the screen
anymore, and an IsFormLoaded function I've picked up somewhere does also say
that it is indeed closed.
As long as the form hasn't been previously opened, it works fine. Is there
something I'm missing about closing forms? For instance, two forms I'm
particularly having problems with are using Timer events, could it be that
they are still running in some form even though the form is closed?? Or
could there be some problem with DeleteObject, in which case, is there
another way of deleting forms I could try??
Brgds
Danny