I am wanting to know when the data on the form has changed. I get Run-time error '2455', Invaild reference to the Dirty Property.
I have use this before Dirty property with no problems, but that was on Bound forms, so I am wondering if it is different for UnBound forms and what do I need to change for this to work. This is what I have so far...
Private Sub lblClose_Click()
If Me.Dirty Then
' Prompt to confirm the save operation.
If MsgBox("Do you want to save?", vbYesNo + vbQuestion, _
"Save Record") = vbNo Then
'Do not save changes and return to main menu
Me.Undo
DoCmd.Quit
Else
Call Save_Click
End If
End If
End Sub
TIA
Dave
I have use this before Dirty property with no problems, but that was on Bound forms, so I am wondering if it is different for UnBound forms and what do I need to change for this to work. This is what I have so far...
Private Sub lblClose_Click()
If Me.Dirty Then
' Prompt to confirm the save operation.
If MsgBox("Do you want to save?", vbYesNo + vbQuestion, _
"Save Record") = vbNo Then
'Do not save changes and return to main menu
Me.Undo
DoCmd.Quit
Else
Call Save_Click
End If
End If
End Sub
TIA
Dave