C
Chrisso
Hi All
I have a Cancel command button on my form with this _Click event code:
Private Sub btnCancel_Click()
If Me.Dirty Then
Me.Undo
End If
DoCmd.Close acForm, Me.Name
End Sub
The trouble is when the record is dirty I have to click this button
*twice* to actually close the form. Why?!
Any ideas? Thanks in advance,
Chrisso
I have a Cancel command button on my form with this _Click event code:
Private Sub btnCancel_Click()
If Me.Dirty Then
Me.Undo
End If
DoCmd.Close acForm, Me.Name
End Sub
The trouble is when the record is dirty I have to click this button
*twice* to actually close the form. Why?!
Any ideas? Thanks in advance,
Chrisso