Falcondeer
New Member
- Joined
- Apr 5, 2021
- Messages
- 1
- Office Version
- 2016
- Platform
- Windows
Hi everybody
I am new to this forum and almost not very expert in ms access,
I have a db for my physiotherapy store where I have a main form and a subform, I have the following code for the command button to print a record in the subform:
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptWA2"
strCriteria = "P_ID= " & Nz(Me!P_ID, 0)
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
The problem now if I have more than one record in the subform, it will always print the first record no matter what .
Now, how could I print specific record in the subform.
Thanks.
I am new to this forum and almost not very expert in ms access,
I have a db for my physiotherapy store where I have a main form and a subform, I have the following code for the command button to print a record in the subform:
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptWA2"
strCriteria = "P_ID= " & Nz(Me!P_ID, 0)
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
The problem now if I have more than one record in the subform, it will always print the first record no matter what .
Now, how could I print specific record in the subform.
Thanks.