![]() |
Data Dictionary, Display Control |
Post Reply ![]() |
Author | |
Crystal Long ![]() Microsoft MVP ![]() Joined: 21 May 2012 Location: Colorado Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() Posted: 27 Apr 2013 at 6:48pm |
Data Dictionary, Display Control by Crystalattached zip file explodes into an Access 2007 database: DataDICTIONARY_DisplayControl_Crystal.accdb uploads/84/DataDICTIONARY_DisplayControl_Crystal.zip Zip file contains 2 objects: 1 form and 1 module:
import the DataDICTIONARY_DisplayControl form and module into a working database, then compile and save, then Open the form: f_DataDICTIONARY_DisplayControl Overview
Choose TableWhen you first open the f_DataDICTIONARY_DisplayControl form, you will not see much until you choose a table to look at. CHOOSE A TABLE Choose a table from the combo box. Use the filter Table textbox like the SearchBar in the Navigation Pane -- fill it out then press TAB. You will see the Data Dictionary for the selected table as well as information about Display control and Unicode Compression.
Delete LookupsThe field list is a Simple Select list allowing multiple values. Click on a field to toggle the selection. The example table has: 3 Lookup fields NOTE: Size is 0 (zero) for memo fields since they are stored in a separate structure and space grows to accommodate the data. It is a good idea to keep memo fields in a different table (which may be linked) since memo fields can cause issues.
Rename TablesThis tool can be used to rename tables. Select a table, fill the New Name textbox and click the Rename command button. If Check Name is true, then the specified new name is compared with known bad characters (edit the Get_CorrectName code to include or exclude whatever you want). The first character cannot be a number. A better new name will be suggested. If acceptable, click Yes and the table will be renamed. When the action is completed, the Table combo will show the new table name. Delete LookupsThe field list show that there are 3 lookup fields with DisplayControl set to ComboBox or ListBox. As selections are made, the SQL for the selected lookup controls is displayed on the right: Click Combo/Listbox to Textbox to make the change and see a report of what was done:
Integer to CheckboxSelect Integer fields to set DisplayControl to Checkbox Click Integer to Checkbox to make the change and see the report: Fieldlist shows that DisplayControl is a Checkbox Table Design also shows that DisplayControl is now Checkbox (106)
Unicode CompressionIf there are any text or memo fields that need unicode compression to be set (such as databases converted from older versions), indicators will display. You can make these changes yourself.
Table Designclick on the DESIGN VIEW button to look at table design and make changes
Datasheetclick on the DATASHEET view button to see the data Warm Regards, free Access video tutorials: |
|
Warm Regards,
Crystal Microsoft MVP Remote Training & Programming Let's Connect and Build Together http://www.AccessMVP.com/strive4peace http://YouTube.com/LearnAccessByCrystal ~have an awesome day ~ |
|
![]() |
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |