I have had this problem happen to me many times
But I found the cause and a way around it.
It can happen one of two ways.
If you copy and paste a form or report that has any code behind it, or if you import a report or form that has code behind it.
Then you exit the DB and open it again, and...