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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top