Hi I have a table field that uses a lookup combo box. The values are: "green", "yellow" and "red". Is there any way I could make the background or names actually appear those colours as well? Thanks.
If you set up two columns:
"Red";255;"Yellow";65535;"Green";65280
You can say:
Private Sub cboColour_AfterUpdate()
Me.cboColour.BackColor = Me.cboColour.Column(1)
End Sub
Yellow as a fore colour is quite difficult to see. Changing the back colour makes selecting a new colour a little confusing.
I guess I should have said that I would be inclined to put an empty unbound textbox beside the combo and let that change colour, same idea except:
Me.TextBoxName.BackColor = Me.cboColour.Column(1)
I've decided to go with your first idea as it makes the interface in this case cleaner.
Just one more thing now that I've been fooling around with it. Is it possible to have the colours show up right away? Right now the combo boxes are white until I change them, then they change to the colour I change it to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.