I am all of a sudden getting this error message on a form when I click the "Save" command button. I tested the code behind the button and the error seems to be coming from the "Me.Dirty = False" line of code. Why would I get the error on that line all of a sudden??
Here is the code behind my "Save" command button:
If Me.Dirty And Form.NewRecord = False Then
Me.txtAFModifiedTStamp = Now() 'Sets value to current date/time
Me.txtAFModifiedBy = Me.txtCreatedByUserName 'Sets value to CurrentUser Name
'Me.Dirty = False
MsgBox "Record has been saved!"