Solved

Access - is there a way I can get a list of all report record sources, tool etc?

Posted on 2013-12-05
5
358 Views
Last Modified: 2013-12-11
Hello all,

I want to try and get a list of each report in an access database and the record source that is on that report?  Any way to do this with a module script or find tool etc?
0
Comment
Question by:sbornstein2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 75
ID: 39700247
You can use the built in Database Documenter to do this.

1
2
3
0
 
LVL 84
ID: 39700602
If that's not sufficient for you you can use the Total Access Analyzer, which is hands-down the best Access documenter I've used:

http://www.fmsinc.com/MicrosoftAccess/Documentation/free-trial.html

There's also Rick Fisher's excellent Find and Replace, which can give you quite a bit of this sort of information:

http://www.rickworld.com/
0
 
LVL 30

Accepted Solution

by:
hnasr earned 240 total points
ID: 39700679
Try this in a command click event in a form: the code lists the Report name and the corresponding record source.

Private Sub cmdCheck_Click()
    Dim ro As AccessObject
    For Each ro In CurrentProject.AllReports
        DoCmd.OpenReport ro.Name, acViewDesign
        Reports(ro.Name).Visible = False
        Debug.Print ro.Name, Reports(ro.Name).RecordSource
        DoCmd.Close acReport, ro.Name, acSaveNo
    Next
End Sub

Open in new window

0
 

Author Closing Comment

by:sbornstein2
ID: 39710583
this is all I wanted perfect thanks
0
 
LVL 30

Expert Comment

by:hnasr
ID: 39710951
Welcome!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question