Differences between Disabled and Locked on a form control

G

Guest

I am aware of the basic effect of Enabled yes/no on a control on a form, and
have used it to create read-only fields that pull values from other forms
just for info purposes.
But what are the differences, the pros and cons, between Enabled and Locked?
When should I use one or t'other? And in what combinations?
I will be very grateful if somebody could please explain this (n.b. on-board
Help doesn't find either term!)
Many thanks
CW
 
R

Rick Brandt

CW said:
I am aware of the basic effect of Enabled yes/no on a control on a form, and
have used it to create read-only fields that pull values from other forms
just for info purposes.
But what are the differences, the pros and cons, between Enabled and Locked?
When should I use one or t'other? And in what combinations?
I will be very grateful if somebody could please explain this (n.b. on-board
Help doesn't find either term!)
Many thanks
CW

Enabled has to do with whether the user can place focus on the control. Locked
influences whether they can change the value. If you have a control that you
want to be read-only, but where the user might find it handy to be able to copy
the control's value to the clipboard, then you would use Locked = Yes rather
than Enabled = No.

Enabled = No (by itself) also changes the appearance of the control so if you
don't want that to happen you would use Locked = Yes or both Locked = Yes and
Enabled = No.
 
A

Allen Browne

Enabled Locked Use
====== ===== ===
Yes Yes Normal, editable control
Yes No Display, allow focus and copy, but not edit.
No Yes No focus, no copy, normal display.
No No No focus, no copy, dimmed appearance.
 
G

Guest

Great summary - many thanks Allen
CW

Allen Browne said:
Enabled Locked Use
====== ===== ===
Yes Yes Normal, editable control
Yes No Display, allow focus and copy, but not edit.
No Yes No focus, no copy, normal display.
No No No focus, no copy, dimmed appearance.
 
M

missinglinq via AccessMonster.com

You might want to look at that again, Allen!

Allen said:
Enabled Locked Use
====== ===== ===
Yes Yes Normal, editable control
Yes No Display, allow focus and copy, but not edit.
No Yes No focus, no copy, normal display.
No No No focus, no copy, dimmed appearance.
I am aware of the basic effect of Enabled yes/no on a control on a form,
and
[quoted text clipped - 8 lines]
Many thanks
CW

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 

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