V
victorcamp
I'm creating a new MDB on-the-fly via VBA code. Works great. Now I want to
add info that's found in the Database Properties window. Not so great.
Various properties in that window are found in:
CurrentDb.Containers![Databases].Documents![SummaryInfo]
and
CurrentDb.Containers![Databases].Documents![UserDefined]
However, a new MDB comes with only 1 Document in that collection: MSysDb,
and there's no Add method for adding Documents (I tried). It appears they're
only created the first time you add something to the Database Properties
window manually. Once they are there, I have no problem creating new
properties via VBA that then show up in that window.
How can I get those 2 documents created via VBA?
add info that's found in the Database Properties window. Not so great.
Various properties in that window are found in:
CurrentDb.Containers![Databases].Documents![SummaryInfo]
and
CurrentDb.Containers![Databases].Documents![UserDefined]
However, a new MDB comes with only 1 Document in that collection: MSysDb,
and there's no Add method for adding Documents (I tried). It appears they're
only created the first time you add something to the Database Properties
window manually. Once they are there, I have no problem creating new
properties via VBA that then show up in that window.
How can I get those 2 documents created via VBA?