|
|
Question : VBA code to change label text colour
|
|
Hello! I would like to know how I can change the font colour of a label when a check box control is 'checked'/'ticked' in Microsoft Access 2003. The user selects a records from a combo box, clicks on the check box, the label of the check box changes colour. When you then move to look at a new record from the combo box the label of teh check box should return to its original colour....any ideas??? Thanks p.s. I am using Windows XP if this makes any significant notice :)
|
Answer : VBA code to change label text colour
|
|
Add the same code to the On Current then ...
Private Sub Form_Current()
if Me.chk1 = True Me.label1.ForeColor = RGB(255,0,0) ' red else Me.label1.ForeColor = RGB(0,0,0) ' black end if End sub
mx
|
|
|
|
|