MadeCurler
enthusiastic pensioner
- Local time
- Today, 13:04
- Joined
- Dec 6, 2007
- Messages
- 49
I'm new (very new) why does this not work? I've attached it to the After_Update event of a Text Box to Enable/disable a Command Button
Sub UndoEdits()
If Me.Dirty Then
Me!btnUndo.Enabled = True ' Enable button.
Else
Me!btnUndo.Enabled = False ' Disable button.
End If
End Sub
I get the message "You have entered an expression that has an invalid reference to the property Dirty" ....what's "Me!" and "Me." all about?
Sub UndoEdits()
If Me.Dirty Then
Me!btnUndo.Enabled = True ' Enable button.
Else
Me!btnUndo.Enabled = False ' Disable button.
End If
End Sub
I get the message "You have entered an expression that has an invalid reference to the property Dirty" ....what's "Me!" and "Me." all about?