A family of Microsoft relational database management systems designed for ease of use.
This can be caused by missing references, among other things. To check for missing references on your development machine, open the .accdb file, then open the VBA Editor and click Tools > References. If any are marked as MISSING, you must fix those (i.e. install the libraries, re-make the references, etc).
If you are deploying this to a different machine, then you have to make sure your references are available on that machine. If you've used anything other than the standard Access references, you'll have to check that.
This can also be caused by corruption. To fix that, first make a copy of your database, then do this:
- Compact your database
- Compile your code - from the VBA Editor click Debug - Compile. Continue doing this until the Compile menuitem is disabled.
- Compact again
Sometimes it helps to decompile your code. To do that, create a shortcut with this as the Target:
"full path to msaccess.exe" /decompile
Run that, then open your database. Access will decompile it. After that, run the 3 steps again.
Also be sure all machines are fully up to date with Windows and Office.