N
norman f
Hi there,
From a form I am trying to access a report In attempt to
change the report heading.
'start of the code ********************
Dim rpt As Report
Dim Docname As String
Docname = List2.Column(0) ' gives the name of the report
Set rpt = Reports(Docname)' causes an error message
' error 2451
the report name "xxxxxxxxxx" you entered is missspelled or
refers to a report that isn't open or doesn't exist.
On Error Resume Next
Dim ctl As Control
' some more ....
' codesnipple end
The name of the report is correct and is there. I user a
similar methode, whereas I have created the reference to
the same report as a function. If I change the same
function that does the tick, to do what I what to do in
this task it causes the same error.
any Hints where I am going wrong here??
Regards Norman
From a form I am trying to access a report In attempt to
change the report heading.
'start of the code ********************
Dim rpt As Report
Dim Docname As String
Docname = List2.Column(0) ' gives the name of the report
Set rpt = Reports(Docname)' causes an error message
' error 2451
the report name "xxxxxxxxxx" you entered is missspelled or
refers to a report that isn't open or doesn't exist.
On Error Resume Next
Dim ctl As Control
' some more ....
' codesnipple end
The name of the report is correct and is there. I user a
similar methode, whereas I have created the reference to
the same report as a function. If I change the same
function that does the tick, to do what I what to do in
this task it causes the same error.
any Hints where I am going wrong here??
Regards Norman