TxtBox Properties

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
 
D

Duane Hookom

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
 

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

Top