It can be done, but it's not as simple as it could be.
If Table1 has a Description, open the Immediate Window (Ctrl+G) and enter
this:
? CurrentDb.TableDefs("Table1").Properties("Description")
However, if Table1 has no description, this will probably yield runtime
error 3270. Therefore you need to write a function that uses error
handling
to recover from the error where the Description does not exist.
If you try to do the same with queries, there's another problem. If the
query doesn't have a description, you may find that Access wrongly
returns
the Description of one of the tables in the query as if it were the
description of the query - confusing!
Anyway, if you are interested in this kind of thing, the same issues
arise
when you try to get the Description of the fields in table design. Here's
a
funtion that illustrates how to do that:
http://allenbrowne.com/func-06.html
Oh, and if you need a query that gives you your table names:
SELECT MsysObjects.Name FROM MsysObjects
WHERE (([Type] = 1) AND ([Name] Not Like "~*") AND ([Name] Not Like
"MSys*"))
ORDER BY MsysObjects.Name;
Include types 4, 6 and 8 if you want to show linked tables.
The other objects are:
Queries: 5
Forms: -32768
Reports: -32764
Modules: -32761
Can't seem to find any information on this... Is it possible to have
the
content of the "Description" field used in Design view of tables
display
in forms and reports?