Maximize Report Window / Cannot Use DoCmd

  • Thread starter Thread starter Paul Cross
  • Start date Start date
P

Paul Cross

Before I was forced to switch database to Microsoft DAO 3.6 Object
Library compatablilty the following code maximized a report when
opened (connected to report's On Open)

Private Sub Report_Open(Cancel As Integer)
DoCmd.Maximize
End Sub

After switching compatability library the code automatically changed
(and no longer works - 424 error Object Needed)

Private Sub Report_Open(Cancel As Integer)
DoCommand.Maximize
End Sub

How can I maximize my reports when the open now?

==Paul Cross
 
Back
Top