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
Solved

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

Posted on 2013-12-05
5
351 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

856 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