Rocky Smolin
rockysmolin at bchacc.com
Fri May 14 08:40:35 CDT 2010
Brad: Here's a bit of code that will cycle through all the reports, and show the report name, but I don't know how to get the record source. I think you may have to open the report in design view to extract that property. At that point I'd write the report name and record source to a temp table and print the report from the table. Dim Doc As Document Dim db As DAO.Database Set db = CurrentDb With db.Containers("reports") For Each Doc In .Documents MsgBox Doc.Name Next Doc End With HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, May 14, 2010 4:15 AM To: accessd at databaseadvisors.com Subject: [AccessD] Report / Query Cross Reference We have a growing number of Access 2007 Reports. All reports use Queries for their Record-Source. Is it possible to create a simple and concise cross-reference report that shows Report Name and Record Source? In our case this would be a query name. Here is a small sample of what we would like to see. ~~~~~~~~~~~~~~~~~~~~~~~~~~ REPORT-NAME RECORD-SOURCE(QUERY) Report001 Query098 Report002 Query499 Report003 Query372 ~~~~~~~~~~~~~~~~~~~~ We have looked at the Access 2007 internal "sys" tables, but cannot figure out how to obtain this info (or if this is even possible). We know that we can obtain this info via the Database Documenter, but the report from this tool contains way more info than we need. There is probably a simple way to do this, but we cannot figure it out. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com