TxtBox Properties

  • Thread starter Thread starter S Jackson
  • Start date Start date
S

S Jackson

I'm trying to write some code to execute a procedure in the details section
of a report. I'm frustrated because I can't use a value property for a
txtbox. The code looks like this:

Dim strLabel As String
Select Case Me.Action.Value
Case "Admin Pen", "CMP"
Me.Amt.Visible = True
strLabel = "Amount"
Me.lblPenalty = strLabel
Me.lblPenalty.Visible = True
Case Else
Me.lblPenalty.Visible = False
End Select

Why do control properties differ between reports and forms? And, how do I
fix the above?

TIA
S. Jackson
 
Is lblPenalty a label control or text box control. If it is a label, then
you must set the Caption property
Me.lblPenalty.Caption = strLabel
 
Back
Top