Results 1 to 6 of 6
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Posts
    1,119
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Report open in Page View (2000)

    I use the following code to open a report:

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

    What would I use to open a report in page view?

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Report open in Page View (2000)

    Sorry, what do you mean by "page view"?
    Charlotte

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Posts
    1,119
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Report open in Page View (2000)

    When the report opens now, it is maximized with the code I use. Once the report is opened, if you click the report (there is a magnigying glass), it goes to page view where it centers the report and shows the whole first page.

  4. #4
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Report open in Page View (2000)

    If by page view you mean 2,4,...pages use :
    Private Sub Report_Open(Cancel As Integer)
    DoCmd.Maximize
    SendKeys "%vat"
    End Sub

    The last letter ( t ) is for 2 pages. Use f for 4, e for 8 and w for 12 pages.
    Francois

  5. #5
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Report open in Page View (2000)

    Ok, I missed this one.
    Use :
    Private Sub Report_Open(Cancel As Integer)
    DoCmd.Maximize
    SendKeys "%vao"
    End Sub

    o (from one, not zero) for one page.
    Francois

  6. #6
    5 Star Lounger
    Join Date
    Jan 2001
    Posts
    1,119
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Report open in Page View (2000)

    Thank you so much. Exactly what I wanted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •