If you mean can you have a list with each line a different colour, the answer is no, you can, however, list colours by name and update the background to the colour selected, use a listview control, or use a 'colour-picker' pop-up form. I went with the pop-up when I wanted to do this.
if you just want to change the colour of a text box background after you select a colour from a list, or even a value from a list
combo box,
name combo1
column count: 2,
widths: 0cm;3cm
Row Source Type: Value List
Row Source: 16777215;WHITE;16711808;blue;8421376;green
create code for after update on combo1
Private Sub Combo0_AfterUpdate()
If Not IsNull(Me.Combo0) And Me.Combo0 <> "" Then
Me.Text2.BackColor = Me.Combo0
End If
End Sub
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.