Solved

changing Backcolor of Text

Posted on 2013-01-10
10
263 Views
Last Modified: 2013-01-23
Private Sub Combo437_Enter()
Me!Combo437.BackColor = 65535
End Sub

Private Sub Combo437_Exit(Cancel As Integer)
Me!Combo437.BackColor = 16777215
End Sub

The Background starts out as White.  When I enter it turns Yellow.  On exit it turns White then goes to transparent? Is there a defauft for transparent that I am missing? I want the background to be White.
0
Comment
Question by:Startrac98
  • 5
  • 3
  • 2
10 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38763952
<Is there a defauft for transparent that I am missing?>

look what the default setting in the control properties

in the design view of the form, select the combo box and hit F4
look for the property Back style and make sure it is set to Normal

also make sure that the back color property is set to white  or  #FFFFFFF
0
 

Author Comment

by:Startrac98
ID: 38767679
the default is Normal for the Combo Box; Back property is set to White.

On enter the box turns YELLOW.  On exit it turns to White for a second, then it turns transparent.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38767700
what version of Access are you using?
is it updated to the latest SP (service pack)?
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:Startrac98
ID: 38771842
MS Access 2007 (12.0.6535.5005) SP2 MSO (12.0 6662.5000)
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38772324
try creating a new form,
place a combo box and set the properties Back style to Normal, default etc..

use the same codes that you used above,

see if it behaves the same or differently.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38776877
The BackColors of fields in Access 2007 can be buggy.

We had a similar issue in some Access 2007 forms, which depending on the color schemes could actually obscure any text displayed in the problematic controls.

If I'm understanding your issue correctly, the resolution is to set the form's Alternate Background Color property to anything (just not blank of whatever the default is).  I'm assuming that you are working with a form in single form view (not continuous forms).
0
 

Author Comment

by:Startrac98
ID: 38779008
Yes single.  It's just a plain filter form.  I wanted to highlite the entered field as yellow and then on exit put it back to white.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38779028
<< the default is Normal for the Combo Box; Back property is set to White. >>

Your code should work with the properties you've described, and I think it would work for you if you try it on a machine with a different version of Access.

Did you try setting the Alternate Background color to something other than the default?
0
 

Accepted Solution

by:
Startrac98 earned 0 total points
ID: 38787399
I have decided to make the fields Transparent.  The color on enter goes to yellow. on enter defaults to transparent.  This will work.
0
 

Author Closing Comment

by:Startrac98
ID: 38809154
information was good and helpful
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question