Question : Print report footer on first page of report

Is it possible in a ms access report, to print the report footer on the first page of the report instead of the last?  I need text just on the bottom of the first page, and I don't have room to fit it in the detail area of the report.

Answer : Print report footer on first page of report

On a sample report I added to the Detail section a text box named txtPage and set its ControlSource to =[Page] (it will display the page number).  This text box can have its Visible property set to No so it won't display on the report.

I then added an event procedure to the Detail section OnFormat event.  When the report is run/viewed the procedure will display the page footer only on the first page and make it not visible on all others.

OM Gang

1:
2:
3:
4:
5:
6:
7:
8:
9:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    
    If Me.txtPage = 1 Then
        Me.PageFooterSection.Visible = True
    Else
        Me.PageFooterSection.Visible = False
    End If
    
End Sub
Random Solutions  
 
programming4us programming4us