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

Embedding a Field in Report Title Bar 1

Status
Not open for further replies.

readkab

Technical User
Jan 22, 2004
7
GB
I have created a Report, and I want one of the fields on the report to be included in the Report Title Bar.

I have tried to use the caption box, but that seems to be a simple text only option.

Basically I am looking to print this report to a PDF printer which uses the Report Bar Title as the file name, so therefore no user interaction is required.

The database is running on Access 2000.

Any help would be appreciated.
 
Assuming for the sake of argument that the field you want to use is in the Detail section of your report, put
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    Me.Report.Caption = Me.txtTransData
End Sub



---------------------------------------
The customer may not always be right, but the customer is ALWAYS the customer.
 
Glad I could help. Have a great day.

---------------------------------------
The customer may not always be right, but the customer is ALWAYS the customer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top