Setting Label in Report

schu7044

Registered User.
Local time
Today, 12:39
Joined
Jan 31, 2008
Messages
14
Hi All: I am working on a report using VBA. I am able to open and filter it (finally). Now I am looking at adding some bells and whistles. I would like to have the label in the form header display the name of the group which is contained in a variable strGroup. I have tried several different ways of referencing this control, but continue to get error messages. Here is an example:

Reports!rptBatchNotesLetters.Title.Caption = "Group Roster" & " " & strGroup

The error occurs on “Title” it is not being recognized.

Any thoughts?

Don
 
do yuo mean a label in the report header?

in the report open event simply

headerlabelname.Caption = "Group Roster" & " " & strGroup
 

Users who are viewing this thread

Back
Top Bottom