J
Jim VanGordon
Maybe you all can help me. I know a little VB but I'm no
expert. I've got a command button to print a report on
the form but it prints the whole report. How would I
alter the code so that it only prints that record? Here's
the code I've got so far
Private Sub Print_Report_Click()
On Error GoTo Err_Print_Report_Click
Dim stDocName As String
stDocName = "New Staking Forms Report"
DoCmd.OpenReport stDocName, acNormal
Exit_Print_Report_Click:
Exit Sub
Err_Print_Report_Click:
MsgBox Err.Description
Resume Exit_Print_Report_Click
End Sub
expert. I've got a command button to print a report on
the form but it prints the whole report. How would I
alter the code so that it only prints that record? Here's
the code I've got so far
Private Sub Print_Report_Click()
On Error GoTo Err_Print_Report_Click
Dim stDocName As String
stDocName = "New Staking Forms Report"
DoCmd.OpenReport stDocName, acNormal
Exit_Print_Report_Click:
Exit Sub
Err_Print_Report_Click:
MsgBox Err.Description
Resume Exit_Print_Report_Click
End Sub