I would like to obtain the name of a query behind a specific report. I was hoping to do something like this...
Dim QueryName As String
QueryName = CurrentProject.AllReports(MyReportName).RecordSource.Name
However, I know this does not work, but I would like to find a means of doing this. Is there something I am obviously overlooking?