Hello,
I am using Access 2003 to filter as report. I have a command button and a combo box on a form that I go into to filter the report (see attached). The command button uses this code:
Private Sub cmdPrint_Click()
Dim str_Filter As String
str_Filter = "[Case Number] = & Case"
DoCmd.OpenReport "unrelated SCT1", acViewNormal, str_Filter
End Sub
to print the selected case (which I set using the combo box drop-down menu)
The entire report is printing and I only need the selected record to print on the report. Any sugesstions? Thank you.
I am using Access 2003 to filter as report. I have a command button and a combo box on a form that I go into to filter the report (see attached). The command button uses this code:
Private Sub cmdPrint_Click()
Dim str_Filter As String
str_Filter = "[Case Number] = & Case"
DoCmd.OpenReport "unrelated SCT1", acViewNormal, str_Filter
End Sub
to print the selected case (which I set using the combo box drop-down menu)
The entire report is printing and I only need the selected record to print on the report. Any sugesstions? Thank you.