Conditional Formatting of Labels

  • Thread starter Thread starter Cameron
  • Start date Start date
C

Cameron

I was wondering if it is possible to change the
formatting of label based on the value in a particular
control.

Thanks,
Cameron
 
You can use code in the On Format event of the section containing the label
like:
If Me.MyControl > 1000 Then
Me.lblMyLabel.ForeColor = vbRed
Else
Me.lblMyLabel.ForeColor = vbBlack
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top