Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box and Labels Properties in Code

Status
Not open for further replies.

pcdaveh

Technical User
Sep 26, 2000
213
US
I want make a label change from visible to invisible depending on a given condition. The property visible is available in design time but I can't access it in run-time. How can this be accomplished? I'm no opposed to using a text box is a label won't work with this idea.


Thanks!
 
Sorry for the bad english above. I was typing fast.
 
I'M NOT SURE EXACTLY WHAT YOU ARE LOOKING FOR, BUT THIS CODE SAYS THE STRING84 = 4 THEN IT IS VISIBLE WITH A CYAN BACKGROUND, ELSE NOT VISIBLE.

If string84 = "4" Then
[TRL8SUB4].BackStyle = "1"
If string84 = "4" Then
[TRL8SUB4].BackColor = vbCyan
End If
Else: [TRL8SUB4].BackStyle = "0"
End If
SHAWNDRA CREE JONES,
DATABASE DEVELOPER
TOYOTA MOTOR MANUFACTURING NORTH AMERICA
ERLANGER, KY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top