lIf the stored form is ticked on the form and the database option "Allow use of Stored forms in this database" is unticked, then you will receive an error message.
Solution: untick "store form in document" in the form properties or
tick "Allow use of stored forms in this database" in database properties