Undo faded text in a disabled combo

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi. I had some good help from SusanV recently and she gave me some code
which, among other things, disables a combo until another combo is completed.
That thread has gone quiet now, hence the repost.

While the combo is diasbled, the entry in it (a School Name) is in faded
grey text. The background is light yellow so the text is hard to see. Is
there a way of stopping the text from changing to grey - I want it to stay
black.

Thanks, JohnB
 
John

Disabled ... "greys out" the text. Another approach to preventing use is to
use the "Locked" property, instead of the "Enabled" property. Check Access
HELP for the interaction between these.

Consider, however, that having greyed out text is a visual reminder to the
user that s/he cannot use it. Leaving the text as "black" could potentially
make the user believe s/he CAN use it.
 
Thanks Jeff. I'll look into that. Cheers, JohnB

Jeff Boyce said:
John

Disabled ... "greys out" the text. Another approach to preventing use is to
use the "Locked" property, instead of the "Enabled" property. Check Access
HELP for the interaction between these.

Consider, however, that having greyed out text is a visual reminder to the
user that s/he cannot use it. Leaving the text as "black" could potentially
make the user believe s/he CAN use it.

--
Regards

Jeff Boyce
<Office/Access MVP>
 
Hi, John.

Instead of using the combo box's Enabled Property, use the Locked Property.
For example:

Me!MyCombo.Locked = True

.. . . and when resetting the property:

Me!MyCombo.Locked = False

.. . . where MyCombo is the name of the combo box.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
Thank you. Cheers, JohnB

'69 Camaro said:
Hi, John.

Instead of using the combo box's Enabled Property, use the Locked Property.
For example:

Me!MyCombo.Locked = True

. . . and when resetting the property:

Me!MyCombo.Locked = False

. . . where MyCombo is the name of the combo box.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
And disabling and locking at the same time will give you both
characterstics -- a disabled control and readable text.
 
The label behaves this way because it is a child of the combo control. You
need to detach it and make it a stand alone label by:

Clicking once on the label
Typing <ctrl>X (cut)
Clicking on the form
Finally typing <ctrl>V (paste)

Then reposition the label and you are good to go.
 
Ahhhh, now that's the answer! Thanks Ken

Ken Snell said:
And disabling and locking at the same time will give you both
characterstics -- a disabled control and readable text.
 
Thanks for this Ron but I'm afraid you got the wrong end of the stick there.
We're talking about a combo, not a label. Anyway, I'm happy that I now have
the solution. Thanks again, JohnB
 
Back
Top