?
Solved

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

Posted on 2013-12-05
5
Medium Priority
?
373 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 85
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 960 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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