Hi,

I want to adjust my data report to be landscape type of Orientation. But the problem is most code that i found is as below:

With myRpt

.Hide
.Orientation = rptOrientLandscape
.refresh
.show

End With
However, when i tried it, it keep coming out the same error message variable not defined and pointed to --> rptOrientLandscape.

Can someone help me? Thanks