BackColor

  • Thread starter Thread starter thedeanslist
  • Start date Start date
T

thedeanslist

I would like to control the background color of a field
on a report during printing. I tried modifying the
background with the following code on the OnFormat Event:

Me.FieldName.BackColor = VbRed

Nothing happens! However the following code does work:

Me.FieldName.ForeColor = VbRed

Is there any way to modify a fields background color
during printing??

Thanks; Dean
 
I would like to control the background color of a field
on a report during printing. I tried modifying the
background with the following code on the OnFormat Event:

Me.FieldName.BackColor = VbRed

Nothing happens! However the following code does work:

Me.FieldName.ForeColor = VbRed

Is there any way to modify a fields background color
during printing??

Thanks; Dean

Me![FieldName].BackColor = vbRed
should work.
Perhaps you have Conditional Formatting set up on that control which
may over ride your code.

Don't forget to set it back to the original color when needed.
 
Back
Top