INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Label back colour changes when editing

Label back colour changes when editing

(OP)
I've inherited a database where the forms' text box labels have an irritating back colour change when clicking text to edit it, making the text very hard to read.

Where is this coming from?

RE: Label back colour changes when editing

Did you check the Back Color property of the text boxes? Did you try to set the back color?

Duane
Hook'D on Access
MS Access MVP

RE: Label back colour changes when editing

(OP)
Duane

The Back Color of each label is set to No Color, Back Style to Transparent.

RE: Label back colour changes when editing

Since you are referring to label controls, I expect there might be some VBA code in the On Focus of the associated text boxes that changes the label background format properties.

Duane
Hook'D on Access
MS Access MVP

RE: Label back colour changes when editing

(OP)
Bit mystified because none of the text boxes has an event attached. Even searched the entire project for 'BackColor' and it doesn't appear in the code.

RE: Label back colour changes when editing

This could be something in a class module or similar. I don't work with these but you might want to look in the form events.

Duane
Hook'D on Access
MS Access MVP

RE: Label back colour changes when editing

(OP)
As I said, I searched the code window globally for Color or BackColor and neither was found.

RE: Label back colour changes when editing

What about clicking on one of the label/textboxes seeing what its name is in the properties window and search for that in the vba code and see if something shows up that may be related to colouring?

RE: Label back colour changes when editing

Did you try to step thru the code "when clicking text to edit it"?
That may be the easiest way to find out where and how the BackColor of the label is changed.

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.

RE: Label back colour changes when editing

Any chance those labels are actually text boxes and you have conditional formatting?

RE: Label back colour changes when editing

(OP)
Thanks for responses

sxschech - did a search for one label name and there's no reference to it anywhere in the code

Andrzejek - I'm just in Design View when this happens, so no code running.

MajP : definitely a label. It also happens if I insert a new unbound label and expand it out, when it fills with a colour like red wine

RE: Label back colour changes when editing

(OP)

I find it's specific to certain existing forms. If I create a new blank form and add a label it's ok.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close