How to resume command if there's error

  • Thread starter Thread starter Pietro
  • Start date Start date
P

Pietro

Hi,
I'm using the below code:
DoCmd.DeleteObject acForm, "cap"
DoCmd.DeleteObject acForm, "csq"
DoCmd.DeleteObject acForm, "admin"
sometimes this code stops in the second line if the form csq does not exist,
how can i make the whole command run even if one of these objects is open or
does not exist ?
How can i make the command go to the third line even if there's a problem
in the second.
 

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

Similar Threads


Back
Top