How can I get the code below for my print button on my form to only print a report's current record (the one displayed on the form)?
Here is the code for the print button:
Private Sub cmdPrintAgencyAwkReport_Click()
On Error GoTo Err_cmdPrintAgencyAwkReport_Click
Dim stDocName As String
stDocName = "Agency Acknowledgement"
DoCmd.OpenReport stDocName, acNormal
Exit_cmdPrintAgencyAwkReport_Click:
Exit Sub
Err_cmdPrintAgencyAwkReport_Click:
MsgBox Err.Description
Resume Exit_cmdPrintAgencyAwkReport_Click
End Sub
Here is the code for the print button:
Private Sub cmdPrintAgencyAwkReport_Click()
On Error GoTo Err_cmdPrintAgencyAwkReport_Click
Dim stDocName As String
stDocName = "Agency Acknowledgement"
DoCmd.OpenReport stDocName, acNormal
Exit_cmdPrintAgencyAwkReport_Click:
Exit Sub
Err_cmdPrintAgencyAwkReport_Click:
MsgBox Err.Description
Resume Exit_cmdPrintAgencyAwkReport_Click
End Sub