I have a procedure to copy a table to the backend and then create a link in the front end. If I step through the code in debug mode it works just fine. When it's running full speed it throws Error 3011 "The Microsoft Office Access database engine could not find the object"
The object clearly must exist because I use the same variables for the copy and link operations.
DoCmd.CopyObject vPathname, vTableName, acTable, ubeTable
DoCmd.TransferDatabase acLink, "Microsoft Access", vPathname, acTable, vTableName, vTableName