Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best fit for report

Status
Not open for further replies.

Duane8889

Programmer
Dec 14, 2001
46
US
Hello
I am using Access 2k and when I show my report it defaults to 100%. I have been able to maximize and minimize but what I would like to do is the best fit choice.

A friend gave me this code...
Code:
Private Sub Report_Activate()
    DoCmd.OpenReport "rptRotationOneDay", acPreview
    Reports("rptRotationOneDay").ZoomControl = 0
End Sub
but i get the error "You entered an expression that has an invalid reference to the property zoom control".

I wonder if there is some update or download that I am lacking.

He tells me its an undocumented feature of Access.

Duane
 
Can't see a problem in the code statements but I'm doubtful about the event you using here. Are you trying to open one report from another?
 
thanks lupin
You are right. It needed to be in an event procedure. Now it works!

I was calling it from a form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top