addressing properties on a form (1 Viewer)

exaccess

Registered User.
Local time
Today, 06:54
Joined
Apr 21, 2013
Messages
287
Hi, I want to access and modify a control of type label on a form under a certain condition. I tried various ways but still getting errror.
Here is what I have done:
Code:
If J > 0 Then Forms!Resultfm.Controls("Header") = "ERRORS"
ResultFm it name of form. I am trying to adjust the label called Header at the top of the form. Please help.
 

JHB

Have been here a while
Local time
Today, 06:54
Joined
Jun 17, 2012
Messages
7,732
If you want it to show "ERRORS" then use Caption
Code:
....Controls("Header").Caption = "Errors"
 

exaccess

Registered User.
Local time
Today, 06:54
Joined
Apr 21, 2013
Messages
287
Works like charme . Thanks.
 

Users who are viewing this thread

Top Bottom