Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can list all of the properties for the database that exist at the time you run the code using a very simple procedure as seen here.</p> <pre><code>Public Sub ListDBProps() Dim db As Database Dim prp As Property Set db = CurrentDb For Each prp In db.Properties Debug.Print prp.Name Next prp End Sub </code></pre> <p>There are a couple of gotcha's in this. Notice I said "that exist at the time you run the code". That is, Access creates properties for the database (and presumably other objects as well) on an "as needed" basis. For instance, when you compile the database into, what used to be called an MDE, now an ACCDE, Access will add a new property of Type "Text" [10] named "MDE" with a value of "T". There are a couple of properties in the list you provided that fall into this category as well, such as "AllowBypassKey" and "AllowBreakIntoCode".</p> <p>Here is the list that I got when I ran this code on a simple database I opened up:<br/> &nbsp;&nbsp;&nbsp;&nbsp;Name<br/> &nbsp;&nbsp;&nbsp;&nbsp;Connect<br/> &nbsp;&nbsp;&nbsp;&nbsp;Transactions<br/> &nbsp;&nbsp;&nbsp;&nbsp;Updatable<br/> &nbsp;&nbsp;&nbsp;&nbsp;CollatingOrder<br/> &nbsp;&nbsp;&nbsp;&nbsp;QueryTimeout<br/> &nbsp;&nbsp;&nbsp;&nbsp;Version<br/> &nbsp;&nbsp;&nbsp;&nbsp;RecordsAffected<br/> &nbsp;&nbsp;&nbsp;&nbsp;ReplicaID<br/> &nbsp;&nbsp;&nbsp;&nbsp;DesignMasterID<br/> &nbsp;&nbsp;&nbsp;&nbsp;Connection<br/> &nbsp;&nbsp;&nbsp;&nbsp;ANSI Query Mode<br/> &nbsp;&nbsp;&nbsp;&nbsp;Themed Form Controls<br/> &nbsp;&nbsp;&nbsp;&nbsp;AccessVersion<br/> &nbsp;&nbsp;&nbsp;&nbsp;NavPane Category<br/> &nbsp;&nbsp;&nbsp;&nbsp;UseMDIMode<br/> &nbsp;&nbsp;&nbsp;&nbsp;ShowDocumentTabs<br/> &nbsp;&nbsp;&nbsp;&nbsp;Build<br/> &nbsp;&nbsp;&nbsp;&nbsp;CheckTruncatedNumFields<br/> &nbsp;&nbsp;&nbsp;&nbsp;ProjVer<br/> &nbsp;&nbsp;&nbsp;&nbsp;StartUpShowDBWindow<br/> &nbsp;&nbsp;&nbsp;&nbsp;StartUpShowStatusBar<br/> &nbsp;&nbsp;&nbsp;&nbsp;AllowShortcutMenus<br/> &nbsp;&nbsp;&nbsp;&nbsp;AllowFullMenus<br/> &nbsp;&nbsp;&nbsp;&nbsp;AllowBuiltInToolbars<br/> &nbsp;&nbsp;&nbsp;&nbsp;AllowToolbarChanges<br/> &nbsp;&nbsp;&nbsp;&nbsp;AllowSpecialKeys<br/> &nbsp;&nbsp;&nbsp;&nbsp;UseAppIconForFrmRpt<br/> &nbsp;&nbsp;&nbsp;&nbsp;AllowDatasheetSchema<br/> &nbsp;&nbsp;&nbsp;&nbsp;Show Values Limit<br/> &nbsp;&nbsp;&nbsp;&nbsp;Show Values in Indexed<br/> &nbsp;&nbsp;&nbsp;&nbsp;Show Values in Non-Indexed<br/> &nbsp;&nbsp;&nbsp;&nbsp;Show Values in Remote<br/> &nbsp;&nbsp;&nbsp;&nbsp;Auto Compact<br/> &nbsp;&nbsp;&nbsp;&nbsp;DesignWithData<br/> &nbsp;&nbsp;&nbsp;&nbsp;Picture Property Storage Format<br/> &nbsp;&nbsp;&nbsp;&nbsp;NavPane Closed<br/> &nbsp;&nbsp;&nbsp;&nbsp;NavPane Width<br/> &nbsp;&nbsp;&nbsp;&nbsp;NavPane View By<br/> &nbsp;&nbsp;&nbsp;&nbsp;NavPane Sort By<br/> &nbsp;&nbsp;&nbsp;&nbsp;Track Name AutoCorrect Info<br/> &nbsp;&nbsp;&nbsp;&nbsp;Perform Name AutoCorrect<br/> &nbsp;&nbsp;&nbsp;&nbsp;HasOfflineLists<br/></p> <p>You can add the Type property to your output easily enough. It is an integer value corresponding to the DataTypeEnum enumeration. The Value property of the Property can be a little more tricky. Usually it's a value that can be easily converted to a string value but there are a couple that cause a runtime error when you try to print them out or store them in a String variable. A little error handling in a small function can handle that with no trouble.</p> <p>My example was run on an ACCDB in Microsoft Access 2007.</p> <p>Enjoy . . . Doug</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload