addressing properties on a form

exaccess

Registered User.
Local time
Today, 21:25
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.
 
If you want it to show "ERRORS" then use Caption
Code:
....Controls("Header").Caption = "Errors"
 
Works like charme . Thanks.
 

Users who are viewing this thread

Back
Top Bottom