Change color of drop down menu on current record only

B

Ben

I have entered the code correctly to change the background color of a drop
down menu. Unfortunately, the entire drop down menu is that color now and
when I go to the next record that color is constant on that field. I have
entered the same code to change the color on the OnCurrent Event, but not
sure why the color is not going back to "white" when i go to a new record.

Please help
 
M

Marshall Barton

Ben said:
I have entered the code correctly to change the background color of a drop
down menu. Unfortunately, the entire drop down menu is that color now and
when I go to the next record that color is constant on that field. I have
entered the same code to change the color on the OnCurrent Event, but not
sure why the color is not going back to "white" when i go to a new record.


When you change a property setting, it statys that way until
you either change it again or close the form. Your current
event procedure has to set the color or set it to white:

If something Then
Me.combo.BackColor = somecolor
Else
Me.combo.BackColor = vbWhite
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top