Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enabled and Locked txt fields

Status
Not open for further replies.

Gavuk

Programmer
Apr 16, 2003
32
GB
Does anyone know how to display fields on a form that can be locked dynamically during run time without them appearing as enabled???? i.e. they are undimmed when you choose the locked (yes) option. Thank you (access 97 by the way).

Cheers

Gav
 
When you want them locked, you can set that property by entering the following code in the underlying form class module:

me!txtExample.locked = true


If you want it to be both locked and disabled:

me!txtExample.locked = true
me!txtExample.enabled = false



Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top