A family of Microsoft relational database management systems designed for ease of use.
Hi,
What your meaning is when you click the print button, you want to print the data of specified page? If I misunderstood your meaning, Please following up here. you could use wherecondition argument on DOCmd.OpenReport, assuming I want to use a button, click on Event and add the following VBA.
Private Sub cmdPreviewRpt_Click()
Dim strReport As String
Dim strWhere As String
strReport = "My report name here"
strWhere = "[Name of my primary Key Field here] = """ & Me![Name of my Primary Key Field] & """"
DoCmd.OpenReport strReport, acViewPreview, , strWhere
End Sub
If primary key field is numeric you change strWhere sentence to:
strWhere = "[Name of KeyField] = " & Me![Name of KeyField]
Here is a article about print a single Microsoft Access record in Form View.
Best regards,
William Zhou
Please remember to mark the replies as answers if they help and unmark them if they provide no help.