You shouldn't be having that problem, and fixing that would be better than managing it on an on-going basis. Some thoughts:
- decompile then recompile as suggested
- it seems you don't know what file is being referred to in the error. If the fe opens then it may be the be. Try refreshing the links.
- does code run (by autoexec or default opening form) and does it refer to a file in any way? Auto loading form may be corrupt.
- you say sometimes you get a compile error. Where? If in a form module but you can't see what causes the error, that form or a control on it may be corrupt.
- production pc's are using Access Runtime or full version?
- which one experiences failure? If only 1, perhaps Office/Access repair or re-install. If both pc's, likely not the problem but couldn't hurt.
- I've reviewed your post and cannot tell if the fe actually opens. Additional code may help to pinpoint or prevent the error, such as testing for be connection assuming fe opens.
- if error occurs when user clicks icon to open db, then it is the fe that cannot be found? That doesn't seem plausible based on your post though.
- you do not have either file in any folder synced to One Drive I hope. Certainly, fe or be is not being Accessed from OD directly?
- how do you edit design? If you modify last copy only and it is faulty, the fault remains. Did you ever open fresh db and import everything into it from prior version. If an object is corrupt, you'd bring that over so it likely would not solve anything. However, if the base db is corrupt, you should be able to get rid of that by starting fresh and importing objects.
That's all I can think of for now.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.