How do I refer to a control in code. I found a close answer in FAQ's but it doesn't get me there. I have multiple and specific labels I want to set a specific line height to in code. The following snippet does not work.
This code errors on the line marked "***"
Tom
Code:
Private Sub LineHt(ctlLabeL As Label)
ctlLabeL.LineSpacing = 100
End Sub
=========================
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim ctlLabeL As Label
ctlLabeL.Name = me.lblPar2 '***
LineHt (ctlLabeL)
'Me.lblPar2.LineSpacing = 100
End Sub
This code errors on the line marked "***"
Tom