If the table has a Description, you can get it from:
CurrentDb.TableDefs("Table1").Properties.("Descrip tion")
If it has no description, that will generate an error, so use error
handling.
For a query, replace TableDefs with QueryDefs. However, if the query has no
description, Access may get confused and give you the description of one of
the tables in the query instead of recognising that there's none.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Bob" <sc*******@colonialfirststate.com.auwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
>
I write the description of a lot of my tables and queries in the
description section in the properties (when you right click on the
table or query). Is there a method or a property that use use to
retrieve that description from code somehow?
Cheers