Tim L
Registered User.
- Local time
- Today, 11:45
- Joined
- Sep 6, 2002
- Messages
- 414
Automate setting form properties?
Is it possible to automate the setting of form properties?
For example:
Develop a database, with lots of forms, reports etc run it, debug it get everything working fine, then decide to lock it down. Whilst locking the database down you want to change the "Min Max Buttons" property to "none" for all the forms/reports in your database. Also the "Control Box" to "No" etc.
My idea is for a bit of code that would set these (and other) properties for all of the forms, reports etc. automatically. Run it once and all locked down, run it again (or another bit of code) to reset the properties.
For example: would it be possible to obtain the names of all the forms in the host database (putting them in to an array or an automatically generated table) and then manipulate the properties using a loop? Is it possible to differeniate between forms and reports this way?
Would setting the properties in this manner be permanent, or would they need to be set everytime the database is opened?
Possibly a tough one this (I know I don't know enough code to even start) but hopefully one of gurus out there will see it as a challenge for the dark winter nights
Or be able to put me straight and tell me to stop dreaming <g>
Tim
Is it possible to automate the setting of form properties?
For example:
Develop a database, with lots of forms, reports etc run it, debug it get everything working fine, then decide to lock it down. Whilst locking the database down you want to change the "Min Max Buttons" property to "none" for all the forms/reports in your database. Also the "Control Box" to "No" etc.
My idea is for a bit of code that would set these (and other) properties for all of the forms, reports etc. automatically. Run it once and all locked down, run it again (or another bit of code) to reset the properties.
For example: would it be possible to obtain the names of all the forms in the host database (putting them in to an array or an automatically generated table) and then manipulate the properties using a loop? Is it possible to differeniate between forms and reports this way?
Would setting the properties in this manner be permanent, or would they need to be set everytime the database is opened?
Possibly a tough one this (I know I don't know enough code to even start) but hopefully one of gurus out there will see it as a challenge for the dark winter nights

Tim