TransferDatabase method works sometimes, but not other times

C

Candy B

DoCmd.TransferDatabase acExport, "Microsoft Access", _
fileName, objType, ObjName, ObjName, True

fileName, objType,and objName are variables

The above code works sometimes. However, sometimes I would
get an error message "The transferdatabase action was
canceled." When this happens, I can't save my file
because it says "You do not have exclusive access to the
database at this time...."

What is wrong here?

Thanks.
 

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