AllowEdits=False, but want a few cmd buttons to function

K

Klox

I have a cmd button that switches between Me.AllowEdits being true an
false. When its false, nothing is editable, which is a good thing, bu
I can also no longer use one of my command buttons that changes th
access window's size and position. I will click it and it will do non
of the code. Three other command buttons in the Details section (wher
the change window position/size and unlock buttons are also located
work perfectly fine while AllowEdits is false, but not this cmd button
I am clueless as to why this would occur, and am hoping a person her
may have run into a similar problem or know a solution. Thanks for an
help or advice.

-Jak
 
G

Graham Mandeno

Hi Jake

Are you sure it's a command button, not a toggle button? Unlike a command
button, a toggle button has a value, and therefore cannot be changed if
AllowEdits is false.

Otherwise, check that the button is not getting Enabled set to False
somewhere in the code.
 
K

Klox

Yep you are right, it was a toggle button by mistake. I even named i
cmdChangeSize. Thanks for the help and everything is working grea
now
 
Top