i have created a form with a field bound to a table. i want to explicitly save the data that is being entered on the form. so i added this code on the form's event on close to prevent the form from saving the data automatically when the form is closed.
If Me.Dirty Then
Me.Dirty = False
End If
it does not work it still saving the data automatically when i entered a data. i debug the code to check if the Me.Dirty is working by adding a MsgBox on top of it
MsgBox ("Me.Dirty " & Me.Dirty)
the message box is giving me "Me.Dirty False" message. i also tried using the [Form].[Dirty] still does not work. is there wrong with my code or i am doing it wrong ? please advise.
thank you,
warren