Hi,
I am trying the code below, embedded within the OnDirty Event of teh form, so that when there is a change in form details the
command button is enabled,
however I seem to receive this error message when making an entry into a field
'The expression onDirty you entered as the event property setting produced the following error:
Procedure declaration does not match description of event or procedure having the same name'
Code:
Private Sub Form_Dirty()
If Me.Dirty Then
Me!btnUndo.Enabled = True ' Enable button.
Else
Me!btnUndo.Enabled = False ' Disable button.
End If
End Sub