Title to a report

  • Thread starter Thread starter Liat
  • Start date Start date
L

Liat

Hi,

I am trying to set the title of the pages in the report
using the following script:
Private Sub PageHeaderSection_Format(Cancel As Integer,
FormatCount As Integer)
Me.txtTitle = "aaaaaaaa"
End Sub

It brings me an error '438' - "Object doesn't support
this property or method"

What did I do wrong?

Thanks a lot,
Liat
 
Yes I have.
When I wrote "Me." - a window was opened with all the
fields in the report and one of them was "txtTitle"
 
Are you sure it's a text box? It sounds more like it's a
Label control. If so, then you want to set it's Caption
property:
Me.txtTitle.Caption = "aaaaaaaa"
 
Yes, I changed it now to text.

Thanks a lot,
Liat
-----Original Message-----
Are you sure it's a text box? It sounds more like it's a
Label control. If so, then you want to set it's Caption
property:
Me.txtTitle.Caption = "aaaaaaaa"
--
Marsh
MVP [MS Access]


Yes I have.
When I wrote "Me." - a window was opened with all the
fields in the report and one of them was "txtTitle"

.
 
Back
Top