Maximize Report Window / Cannot Use DoCmd

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top