O I have code on the close button also that I think is interferring:
Code:
If Me.Dirty Then Me.Dirty = False
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_ExitToSwitchboard_Click:
Exit Sub
It's referring back to that.
So; My form has several subforms. The beforeupdate only fires when I change fields on the form. Ok. I don’t want users to accidentally change any fields. I don’t know how to prevent them from doing this since it is a data entry form also. I am noticing that the “before update” code fires when I change a field on the form. If I click no; the focus jumps back to the field I changed. If I keep saying no; it won’t let me proceed until I click yes. If I click yes; it will let me proceed to the next record as long as I don’t hit close. This is when it gives me the error. What do I do and where do I put the code?