Anyone have code for checking a form for updates (not just dirty) before closing a form?
Right now I just have this.
The only issue is, what if the person doesn't actually update any of the data? I don't want the modified timestamp to change unless they actually change the physical data.Code:Private Sub Form_Close() 'If the form has modified update the modified date If Me.Dirty Then Me.Modified = Now() Else DoCmd.Close End Sub