Chek Properties of Closed Forms

vtrm

Registered User.
Local time
Tomorrow, 02:09
Joined
Jun 8, 2005
Messages
21
I have a remote DB with some Forms. Some forms have commandButtons in them, and some don't.

I have a Table called "test" in my current DB.

I need to look for command buttons in each Form, and populate their names into my "test" table.

Is it possible???
 
Hello

Yes, that is possible. You need to cycle through the AllForms collection and test for the presence of each form. Then at each form you need to cycle through the controls collection to test for the controls you are looking for. I enclosed and example. Press the check controls command button.
Regards
Mark
 

Attachments

What if the Form isn't loaded?

Thanks mhartman. But my question was different.

I need to check the properties of Forms (in a totally different DB) that are not open at all - which means I have to Load them 1st, isn't it???:(
 

Users who are viewing this thread

Back
Top Bottom