DeleteObject doesn't Work

B

Bill f.

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
 
D

Dirk Goldgar

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.
 

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