Below Report code not working. Found it on the internet.
I am trying to find if my report is on page 1 or not so I can control the printing of a line thru-out report.
Public Shared Function PageOn (ByVal PageNumber() as string) as string
Dim str as string
If Globals!PageNumber = 1 then str = "False"
Else str = "True"
In report and using for line visibility:
=iif(code.PageOn = False,False,True)
Reference to a non-shared member requires an object reference.
If there is a better way to write this code and it works, I'm in...