DeleteObject doesn't Work

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I´m having problems running DeleteObject on
form in
database. It says the form is open, which it isn't; I hav
use
DoCmd.Close on i

Please Help

Bil
 
Bill f. said:
I´m having problems running DeleteObject on a
form in a
database. It says the form is open, which it isn't; I have
used
DoCmd.Close on it

Please Help,

Bill

I think you'd better post the code. I suppose it could be that you need
to give Access some time to finish closing the form; maybe inserting a
DoEvents between the statements would do the job, or you could insert a
loop with DoEvents until the form is demonstrably closed. But post the
code and we'll see what we can suggest.
 
Back
Top