Solved

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

Posted on 2010-08-28
2
372 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
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

772 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

12 Experts available now in Live!

Get 1:1 Help Now