How to get Object, Properties, Description to display on a form

  • Thread starter Thread starter Elizabeth
  • Start date Start date
E

Elizabeth

I have a combo box that gets the names of all reports in
my database. The user can click on the report name to
preview it. When the user selects a report, I thought it
would be nice to display a description of the report.
In the Access main window you can enter a Description for
objects (tables, queries, forms, reports, etc.) I was
thinking this might provide the information required in
the form. Can someone tell me the code, or is there a
better way to get this info?

Thank you,
Elizabeth
 
Hi Elizabeth,

The only way this will work is if the Description property
is filled in already. If not, you will get an error.


CurrentDb.Containers("Reports").Documents("Report
Name").Properties("Description").Value

Chris
 
Back
Top