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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Choosing BackColor when control isn't enabled

Status
Not open for further replies.

th2002

Programmer
Jan 22, 2004
5
NO
Hi!

I'm having trouble with back color in text box control when Enabled property is No (False). Access changes back color to grey when I change this property to No. But I would like to keep it white like it is when Enabled is Yes.

I have tried to change the back color from control's properties, but Access ignores my changes.

My form's back color is white, so maybe Transparent property could be used somehow.

This sounds like a simple thing, but... Any help would be greatly appreciated.

-TH-
 
If you want the control to be disabled then just set the enabled property to no and the Locked property to yes.

With these 2 properties set your textbox will still look "normal". (I know, it took me a while to figure that one out too) Maq [americanflag]
<insert witty signature here>
 
Thanks for your reply, Maq!

I forgot to tell that I need to change the value in the disabled control. I change the value by VBA so I could unlock the control before and lock after the change. But somehow I still feel like there got to be easier way to do it.

-TH-
 
These properties are only bothering you in the user interface.
In code you can always set the value property even if the control is disabled and locked
 
You're right! I tought I tested that and thought it does work, but...

Thanks to you both, Maq and hennep!!!

-TH-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top