Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return table/ Query that a report is based on

Status
Not open for further replies.

citychap26

Programmer
Sep 19, 2004
144
GB
Hi Guys,

I need to return the query name or table a report uses as it's source using VBA code. I had it working taking the data from the Namemap property but this has stopped working.

Any ideas...

Cheers

SK
 
how are you wanting to return it?
As a text control on the report? a dialogbox?



-Pete
 
If you're looking to display the recordsource name on the report put a label on your report and then refer to it in the on open event of the report:

Me.[labelname].Caption = Me.Report.RecordSource
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top