Where is the variable coming from? A textbox on the form? Manually entered when prompted? Global Variable?
Here are some example ideas.
In the report footer using a form as data source:
[tt]="Page " & [Page]+[Forms]![frmName].[FieldName_or_TextBox][/tt]
In the report footer using a function as data source:
[tt]="Page " & [Page]+mypageno()[/tt]
Add this to a Standard Module
Code:
Public Function mypageno()
'Add a custom starting page number when the report loads
'20220223
mypageno = InputBox("Enter Starting Page Number:", "PageNo")
End Function
In the report footer using a global variable as data source:
[tt]="Page " & [Page]+mygblPgNo()[/tt]
Add this to a Standard Module
At the top before any subs or functions add
[tt]Dim gblPageNo as Long[/tt]
Then add this function
Code:
Public Function mygblPgNo()
'Add a custom starting page number based on a global variable
'20220223
mygblPgNo = gblPageNo
End Function