Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2007

Tip: Looking for answers? Try searching our database.

Differences between Disabled and Locked on a form control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CW - 15 Jul 2007 14:14 GMT
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
Rick Brandt - 15 Jul 2007 14:25 GMT
>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
[quoted text clipped - 5 lines]
> 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.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

CW - 15 Jul 2007 15:04 GMT
Great explanation -all clear to me now
Many thanks
CW

> >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
[quoted text clipped - 15 lines]
> don't want that to happen you would use Locked = Yes or both Locked = Yes and
> Enabled = No.
Allen Browne - 15 Jul 2007 14:26 GMT
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.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>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
CW - 15 Jul 2007 15:06 GMT
Great summary - many thanks Allen
CW

> Enabled    Locked     Use
> ======    =====     ===
[quoted text clipped - 15 lines]
> > Many thanks
> > CW
missinglinq - 15 Jul 2007 15:07 GMT
You might want to look at that again, Allen!

>Enabled    Locked     Use
>======    =====     ===
[quoted text clipped - 8 lines]
>> Many thanks
>> CW

Signature

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

Answers/posts based on Access 2000

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.