Error Message

T

Tony

I have a field called "Markup" that is usually Locked and
Disabled, but I have a button so that you can unlock the
field, Enable it and Set Focus on it.

This is the code"

Private Sub Command22_Click()
Me.Markup.Enabled = True
Me.Markup.Locked = False
Me.Markup.SetFocus
End Sub

Now when I click on the button the following error
message comes up:

"The expression On Click 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.

*The expression may not result in the name of a macro,
the name of a user-defined function, or [Event Procedure].
*There may have been an error evaluating the function,
event, or macro."

Please tell me what I did wrong. Thankyou!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top