Solved

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

Posted on 2010-08-28
2
373 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
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now