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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show a Table Name in a Report

Status
Not open for further replies.

steve229922

Technical User
Mar 9, 2004
8
US

Is there a function that will show the table name that a report is built on? I built a report, and I want to show the source of the info in the header, much like the funtion =today() only I want the name of the table used to build it to be visible........

Any help appreciated!!!!

Thanks in advance---
 
on your report header, create a labelfield, let's name it lbl_source.

in the on open event of the report add this code:

Code:
Private Sub Report_Open(Cancel As Integer)
Me.lbl_source.Caption = Me.RecordSource
End Sub


HTH,
fly



[blue]Typos, that don't affect the functionality of code, will not be corrected.[/blue]

Martin Serra Jr.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top