From the interface:
1. Open the report in design view.
2. Open the Properties box (View menu).
3. On the Data tab, look at the RecordSource property of the report.
In code:
Dim strDoc As String
strDoc = "NameOfYourReportHere"
DoCmd.OpenReport strDoc, acViewDesign, WindowMode:=acHidden
Debug.Print Reports(strDoc).RecordSource
DoCmd.Close acReport, strDoc
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.