Error 2001 on Docmd.RunCommand (accmdInsertObject)

C

Crystal

I am trying to make the user interface more user-friendly by creating a
command button that will open the dialog box to insert an object into an OLE
field.

My code is:

Me.txtAttachment.SetFocus
DoCmd.RunCommand (accmdInsertObject)

This worked once. Nothing changed but the code won't run anymore. Now, I
get error 2001, "You have cancelled the previous operation"

What did I do wrong? How do I fix it?

Crystal
 

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