D
David McDivitt
I am able to get code from within a form by opening in design mode and
looking at the module property. Unfortunately this requires an MSAccess
application object to be active, and docmd used on the application object.
DAO provides a collections object for a database, and the forms collection
can be accessed through that. I cannot find how to get to specifics of a
form through the document object. I do not need to cycle through all the
controls of a form, just see if certain text is used anywhere in a form. If
going through the application object I can open a form in design view, then
cycle through all controls, sections, properties, etc., examining for text.
I would like to do this just through the document object and not load a
MSAccess application. If found I assume the text I want would look like a
Visual Basic frm file or something like that.
I am doing analysis on a huge number databases, not designed properly, and
we must assume responsibility. My app will cycle through one at a time and
collect info. Unfortunately, when a database is opened with the MSAccess
application object, I cannot always kill startup instructions. I must copy
each one, delete properties and scripts, then open the copy. I would like to
just use DAO, containers, and documents if possible. Thanks
looking at the module property. Unfortunately this requires an MSAccess
application object to be active, and docmd used on the application object.
DAO provides a collections object for a database, and the forms collection
can be accessed through that. I cannot find how to get to specifics of a
form through the document object. I do not need to cycle through all the
controls of a form, just see if certain text is used anywhere in a form. If
going through the application object I can open a form in design view, then
cycle through all controls, sections, properties, etc., examining for text.
I would like to do this just through the document object and not load a
MSAccess application. If found I assume the text I want would look like a
Visual Basic frm file or something like that.
I am doing analysis on a huge number databases, not designed properly, and
we must assume responsibility. My app will cycle through one at a time and
collect info. Unfortunately, when a database is opened with the MSAccess
application object, I cannot always kill startup instructions. I must copy
each one, delete properties and scripts, then open the copy. I would like to
just use DAO, containers, and documents if possible. Thanks