I came in this morning to find I had the same problem as described above. The first time a section of code hits a DoCmd.RunSQL command, I receive a 'Cannot find project or library' message. When I tried to add the library back in, I found that the 'References' option, under the 'Tools' menu was disabled. In my case, both appear to have been caused by my PC being replaced, while I wasn't around.
I can get my permissions returned and add back the functionality I needed, but it got me thinking:
I'm working on an application to be used by many people, in various locations within the company. Am I going to need to repeat this process on every PC that needs to access it? If so, is there any way around this i.e. a way to permananetly 'attach' the add-ins to the application.
If not, was it just a coincidence that I lost the add-ins at around the same time the PC was replaced? What else might have caused it?
At the risk of sounding overly vague, eveything was working fine on Friday. I left for the weekend, arrived this morning and I've got the problem.