Label Backcolor

G

gator

why isn't this working? the background color remains the same.

Private Sub lblApr_Click()

Me.lblApr.BackColor = vbBlue

End Sub
 
M

Mr. B

Hi, gator.

Check the "Back Style" property of your label. To change the back color,
this property must be set to "Normal". By default the Back Style of a label
control is set to "Transaprent".

HTH
Mr. B
(askdoctoraccess dot com)
 
G

gator

this is not working...???

Private Sub lblApr_Click()
Me.lblApr.BackStyle = vbNormal
Me.lblApr.BackColor = vbBlue
End Sub
 
M

Mr. B

gator,

Change your first line of code to:

Me.lblApr.BackStyle = 1

HTH
Mr. B
(askdoctoraccess dot com)
 
Top