Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MS Access 2010 Different "On Page" vba commands for first and subsequent pages

Posted on 2010-08-28
2
Medium Priority
?
384 Views
Last Modified: 2013-11-28
I have constructed a report that has a Report Header and a Page Header. The Page Header does not appear on the first page - This is the way I want it. Using the Report's "on page" setting, I have used vba code to draw a rectangular box around the detail section of the report's First Page. For the 2nd and subsequent pages, the rectangular box needs different dimensions because the header section for the first and subsequent pages are different dimensions. Within an If-Then Statement within the "on page" setting, can I use certain vba code for the first page - and then different vba code for the 2nd and subsequent pages? How do I identify the first page name or number? How do I define the 2nd and subsequent pages? Thanks in advance.
0
Comment
Question by:James_Moroney
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 33551064
James,
 Yes, you can execute different page logic by checking the page property.  The page property will tell you what page your currently on.
JimD.
0
 

Author Closing Comment

by:James_Moroney
ID: 33551109
Thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question