Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

report showing record source of forms and reports

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
susanhull@ou.edu - 02 Mar 2007 22:48 GMT
Is there a tool in Access that creates a report showing the record
source for my reports and forms? Or is there a way to generate a
report that shows if a query is being used in a report or form?

Thanks in advance for your advice.

Susan
Allen Browne - 03 Mar 2007 07:00 GMT
There's a built-in documenter that provides some info on the forms/reports:
   Tools | Analyze | Documenter

Jeff Conrad has a more extensive documenter here:
   http://home.bendbroadband.com/conradsystems/accessjunkie/csdtools.html

If you want to code it (assuming Access 2000 or later), loop through the
AllForms or AllReports collection. This kind of thing:

Public Function ShowRecordSource()
   Dim accobj As AccessObject
   Dim strDoc As String

   For Each accobj In CurrentProject.AllForms
       strDoc = accobj.Name
       If accobj.IsLoaded Then
           Debug.Print strDoc, Forms(strDoc).RecordSource
       Else
           DoCmd.OpenForm strDoc, acDesign, WindowMode:=acHidden
           Debug.Print strDoc, Forms(strDoc).RecordSource
           DoCmd.Close acForm, strDoc
       End If
   Next
End Function

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Is there a tool in Access that creates a report showing the record
> source for my reports and forms? Or is there a way to generate a
[quoted text clipped - 3 lines]
>
> Susan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.