label detail method compile error

  • Thread starter forcefield via AccessMonster.com
  • Start date
F

forcefield via AccessMonster.com

My label report has this a field called txtheader

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
txtHeader.Properties.Item("ForeColor") = FontColor
txtHeader.Properties.Item("FontSize") = fSize
txtHeader.Properties.Item("FontWeight") = fontWeight
End sub

Everytime I open the report, I get compile error - method or data member not
found with the word properties hightlighted. I just could not find where the
problem is. I must have missed something. can someone please help

Thank you
 
J

Jack Leach

Try this:

txtHeader.ForeColor = FontColor
txtHeader.FontSize = fSize
txtHeader.FontWeight = fontWeight

or maybe:

txtHeader.Properties("ForeColor").Value = FontColor
txtHeader.Properties("FontSize").Value = fSize
txtHeader.Properties("FontWeight").Value = fontWeight


hth
--
Jack Leach
www.tristatemachine.com

"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
 
Top