Prevent user to change textbox value!

  • Thread starter Thread starter Koulla
  • Start date Start date
K

Koulla

Hi,

Is there any way to not leave the user to change a value
of a text box? Only of one text box.
I have many things in my form. Many other text boxes,
subforms, etc and I want to a specific text box to prevent
the user to change the value or delete it. I do not want
to use the enabled property. Is there is something like
allow edits property appropriate to a text box? Or is
there any other way to do that? By code ot a macro?

Please answer me is important!

Thanks a lot!
Koulla
 
You can set the locked property to yes either on the
properties (data) tab or in code (me!ControlName.locked =
true).

Rgds,
Glenn.
 
I do not want
to use the enabled property.

Why not?- that is what it is for...

Remember that setting Enabled=False and Locked=True turns the control back
to the normal colour (as opposed to greyed-out). And you can alter these
properties "on the fly" in response to events or values elsewhere on the
form.

HTH


Tim F
 
Back
Top