Results 1 to 2 of 2
  1. #1
    securitywyrm is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    97

    Export design view as a query?

    Greetings! I am inheriting a few databases of questionable integrity and need to re-evaluate all their fields. To assist with this, I'd like to export the information that you normally see in the design view of a table: Name, data type, and description. I am aware of the "Database documenter" option which can export ALL of the information of a table, but this requires significant post-processing to narrow down to relevant information. Is there an easier way to extract this information?



    Really, just being able to "select all" and copy while in design view would suit my needs.

    Your help is much appreciated!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    For table properties:
    Code:
        Dim o As Object, p As Property, db As DAO.Database
        Set db = Application.CurrentDb
        Set o = db.Containers("tables").Documents("your table name")
        On Error Resume Next
        For Each p In o.Properties
            Debug.Print p.Name & vbTab & vbTab & p.value
        Next p
        Set o = Nothing
        Set db = Nothing
    Getting content of field Description property:
    Code:
    Dim db As Database, tdf As TableDef, fld As Field
    Set db = CurrentDb()  'change this to OpenDatabase on the BE db if your app is split
    Set tdf = db.TableDefs("table name")
    Set fld = tdf.Fields("field name")
    On Error Resume Next 'will error if there is no info in this property
    Debug.Print fld.Properties("Description")
    Set tdf = Nothing
    Set fld = Nothing
    Set db = Nothing
    Expand code to cycle through tables and fields.

    Otherwise, use SnippingTool to get screenshots.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 12-02-2012, 12:59 AM
  2. Query - Design View
    By Rick West in forum Queries
    Replies: 4
    Last Post: 04-09-2012, 04:09 PM
  3. Unable to view query in design view
    By vemi007 in forum Queries
    Replies: 7
    Last Post: 01-19-2012, 11:36 AM
  4. Export query design
    By somm in forum Access
    Replies: 2
    Last Post: 01-20-2011, 03:17 AM
  5. Using a Design View Query in ADO?
    By danny2000 in forum Access
    Replies: 4
    Last Post: 12-06-2010, 03:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums