Results 1 to 2 of 2
  1. #1
    system243trd is offline Novice
    Windows 2K Access 2003
    Join Date
    Nov 2011
    Posts
    27

    Access report change label value based on page number

    Hi


    I have a label on an Access report, I want to be able to set the value to A if it is page number 1 and B if it is any other page.

    I have tried the following code on the form load but this fails to work:

    Private Sub Report_Load()
    If Me.Page = 1 Then
    Me.Label01.Caption = "A"
    Else
    Me.Label01.Caption = "B"
    End If
    End Sub

    Please can anyone help?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about trying to use the OnPrint event instead.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Page/Report Footer in Label Report
    By Paul H in forum Reports
    Replies: 2
    Last Post: 07-23-2015, 07:41 AM
  2. Replies: 2
    Last Post: 02-07-2015, 04:30 PM
  3. How to change report to page 2 programmatically?
    By naeemahmad in forum Reports
    Replies: 23
    Last Post: 12-04-2013, 12:27 AM
  4. how to change report code page
    By broken_ice in forum Reports
    Replies: 1
    Last Post: 06-27-2010, 02:23 AM
  5. Replies: 1
    Last Post: 03-12-2009, 09:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums