Lock Unlock Command Button

Z

Zanstemic

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?
 
D

Daniel

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

Me.CommandButtonName.Caption = "WhateverYoudLike"

Daniel
 
C

Cheese_whiz

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
 
Top