To clarify, I only helped debug some of the issues Pam was having with a particular task she was wanting to achieve. I did NOT build this db.
But yes, Adam is right about the cause of the error.
You could also have alternatively used the line of code
Me.Dirty = False near the start of the command button code to force the record to be saved.
The compile error can be seen if you open a form in design view, then open the vba editor to look at some of your code. There's a menu called Debug, in the vba editor. The top item in that menu is the Compile option. This essentially runs through all your vba code looking for potential bugs and errors that might cause your db to have a hissyfit.
For example, a failure to compile will ruin any attempt to convert your Mdb file into a MDe file for distribution.
In this case, there is a letter 'p' in the code module outside of any of the subs or functions that should not be there.
Hope that explains that.