L
Loralee
I am trying to create 2 report: A and B.
Report(A) contains the name and description for each of the tables in my
db, and then Report(B) that lists each each field name and description in
each table.
I am using Allison Balter's example in DAO and am getting an error that the
property ormethod is not available. I believe it is failing at the
description property. When I type in "tdf. " Intellisense does not show
description for tdf or any other variations I've tried. I don't want all the
properties the Documenter gives me, just a simple list so I can document and
share the definitions of the tables and fields. (Is the description property
hidden somewhere else?)
Thanks-
Loralee
******************
My code is:
Dim db As DAO.Database
Dim tdf As TableDef
Dim fld As Field
Set db = CurrentDb
DoCmd.SetWarnings False
For Each tdf In db.TableDefs
DoCmd.RunSQL "INSERT INTO tblTableDefs" _
& "(tableName, TableDesc) " _
& "VALUES (" & tdf.Name & ", " & tdf.Description & ")"
Next tdf
DoCmd.SetWarnings True
Report(A) contains the name and description for each of the tables in my
db, and then Report(B) that lists each each field name and description in
each table.
I am using Allison Balter's example in DAO and am getting an error that the
property ormethod is not available. I believe it is failing at the
description property. When I type in "tdf. " Intellisense does not show
description for tdf or any other variations I've tried. I don't want all the
properties the Documenter gives me, just a simple list so I can document and
share the definitions of the tables and fields. (Is the description property
hidden somewhere else?)
Thanks-
Loralee
******************
My code is:
Dim db As DAO.Database
Dim tdf As TableDef
Dim fld As Field
Set db = CurrentDb
DoCmd.SetWarnings False
For Each tdf In db.TableDefs
DoCmd.RunSQL "INSERT INTO tblTableDefs" _
& "(tableName, TableDesc) " _
& "VALUES (" & tdf.Name & ", " & tdf.Description & ")"
Next tdf
DoCmd.SetWarnings True