changing Backcolor of Text

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.
Startrac98Asked:
Who is Participating?
 
Startrac98Author Commented:
I have decided to make the fields Transparent.  The color on enter goes to yellow. on enter defaults to transparent.  This will work.
0
 
Rey Obrero (Capricorn1)Commented:
<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
 
Startrac98Author Commented:
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Rey Obrero (Capricorn1)Commented:
what version of Access are you using?
is it updated to the latest SP (service pack)?
0
 
Startrac98Author Commented:
MS Access 2007 (12.0.6535.5005) SP2 MSO (12.0 6662.5000)
0
 
Rey Obrero (Capricorn1)Commented:
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
 
mbizupCommented:
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
 
Startrac98Author Commented:
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
 
mbizupCommented:
<< 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
 
Startrac98Author Commented:
information was good and helpful
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.