Ok, I have a form with the following combo box (blank, 1, and 2).
Selecting “blank” from the drop down, all the text within that record would be black (default).
Selecting “1” from the drop down, all the text within that record would be blue.
Selecting “2” from the drop down, all the text within that record would be orange.
Is it possible to store the color change of the record to the table and report? Printing the report, will it display the colors?
Below is my code that tried to follow from an example in my book. Thanks in advance.
Private Sub ComboBox1_Change()
'Change the color of all output in form according to item selected
Select Case TextBox1
Case " "
TextBox1.ForeColor = vbBlack
Case "1"
TextBox1.ForeColor = vbBlue
Case "2"
TextBox1.ForeColor = vbOrange
End Select
End Sub
Selecting “blank” from the drop down, all the text within that record would be black (default).
Selecting “1” from the drop down, all the text within that record would be blue.
Selecting “2” from the drop down, all the text within that record would be orange.
Is it possible to store the color change of the record to the table and report? Printing the report, will it display the colors?
Below is my code that tried to follow from an example in my book. Thanks in advance.
Private Sub ComboBox1_Change()
'Change the color of all output in form according to item selected
Select Case TextBox1
Case " "
TextBox1.ForeColor = vbBlack
Case "1"
TextBox1.ForeColor = vbBlue
Case "2"
TextBox1.ForeColor = vbOrange
End Select
End Sub