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

Change Caption of a Report with a MAcro

Status
Not open for further replies.

jordivi

Technical User
Jan 4, 2003
5
DE
Hi all,
I want to print (using Acrobat Distiller) an Access Report, saving it every time with a different name. The proper name to use is in a Form.

I'm trying to change tha Caption value of a Report using a Macro and setting as new Caption the name read in a form.
I use the 'SetValue' action in the Macro:

Element: [Reports]![ReportName].[Caption]
Espression: =[forms]![formname].[name]

But when I run the Macro Access gives me a negative response: it's not a 'OLE Object'

Thanks a lot
jordivi
 
Hi, You might try using Vb rather than using a macro on the reports Open Event. Something like:
me!YourLblCaption.Caption = forms!yourform.yoursource
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top