Lock Unlock Command Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using a command button to flip the state of AllowEdits
by using a Click event with:
Me.AllowEdits = Not Me.AllowEdits

I'd like the command button change when selected. Something like: Lock -
Unlock

Any suggestions?
 
If you mean change its caption no promblem. You can simply use code like:

Me.CommandButtonName.Caption = "WhateverYoudLike"

Daniel
 
Just as an alternative, and depending (of course) on your situation, you
might consider using an option group with the push button style. One push
button for "lock", and one for "unlock".

Sometimes it adds to the visual appeal to vary the controls you use a little.

Just my opinion,
CW
 

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

Back
Top