Rabu, 06 April 2016

[MS_AccessPros] Looping through the forms collection

 

All of the forms in my Access 2007 database have a label named
lblFormName. One of the forms has a command button whose click event I'd
like to use to toggle the Visible property of the lblFormName on each of
the open forms. I thought the code snippet below would to that, but
turns out not. It toggles the visible property of only the lblFormName
label in the form with the command button. This is the code to set the
Visible property to false, I have similar lines of code to set the
Visible property True. Would appreciate some advice. Thanks. Steve

Dim frmCurr As Form
For Each frmCurr In Forms
lblFormName.Visible = False
Next frmCurr

__._,_.___

Posted by: Steve5 <thaw5@suddenlink.net>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? The Yahoo Mail app is fast, beautiful and intuitive. Try it today!


.

__,_._,___

Tidak ada komentar:

Poskan Komentar