UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Report Caption    
 
   
MiaAccess
post Feb 20 2005, 08:12 PM
Post #1

UtterAccess Veteran
Posts: 301
From: Florida



Version is 2003 in 2002 format

Is it possible to add a field to the caption of a report
For example, I have a caption: Payroll by Group
Since I print a lot of reports to a pdf file, I would like the report to automatically be saved as:
Payroll by Group 01-28-05 - the date represent a field called [wedate]

something like: Payroll by Group & [wedate]

Can this be done?
Anne (IMG:http://www.utteraccess.com/forum/style_emoticons/default/compute.gif)
Go to the top of the page
 
+
kikovp
post Feb 20 2005, 08:50 PM
Post #2

UtterAccess Veteran
Posts: 492
From: Lisboa, Portugal



Hi,

You could just change the report's caption, in the Report_Open event procedure:

Me.Caption = "Payroll by Group - " & Now()

However, if you must use a value from one of the underlying fields ([wedate]) this cannot be done on the Report_Open (the fields don't have a value yet).

You can do it for example in the PageHeader_Format event:

If Me.Page = 1 Then ' no need to do it more than once
Me.Caption = "Payroll by Group - " & Me![wedate]
End If

Hope this helps
Go to the top of the page
 
+
MiaAccess
post Feb 20 2005, 10:16 PM
Post #3

UtterAccess Veteran
Posts: 301
From: Florida



Thank you, it works
This is going to save me a lot of time not having to rename every file.
Anne
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th May 2013 - 02:29 AM