Q:

Invalidated digital signature in MS Access

It happened to me that MS Access rejected my certificate and denied to sign the file during save with a message:

"Modifications to the database or project have invalidated the
  associated digital signature"

How to force MS Access to sign the file?

A:

The solution is to:

decompile the file from command prompt (making a copy before decompiling should be welcome)
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile
compile the code again in VBA editor
compact/repair the file

