When I double click the report and open it manually, the report comes up fine...except it comes up for ALL 9500 records. When I use the button on the form (which used to work fine) to print the report for ONLY the CURRENT record, I get a blank.
Here is the code for my button
Private Sub btnPWMSO_Click()
On Error GoTo Err_btnPWMSO_Click
Dim stLinkCriteria As String
If Me.Dirty Then Me.Dirty = False
stLinkCriteria = "[Serial Number] = " & Chr(34) & Me![Serial number] & Chr(34)
DoCmd.OpenReport "rptPWMSO", acViewPreview, , stLinkCriteria
Exit_btnPWMSO_Click:
Exit Sub
Err_btnPWMSO_Click:
MsgBox Err.Description
Resume Exit_btnPWMSO_Click
End Sub
and the attached is what it looks like.
Here is the code for my button
Private Sub btnPWMSO_Click()
On Error GoTo Err_btnPWMSO_Click
Dim stLinkCriteria As String
If Me.Dirty Then Me.Dirty = False
stLinkCriteria = "[Serial Number] = " & Chr(34) & Me![Serial number] & Chr(34)
DoCmd.OpenReport "rptPWMSO", acViewPreview, , stLinkCriteria
Exit_btnPWMSO_Click:
Exit Sub
Err_btnPWMSO_Click:
MsgBox Err.Description
Resume Exit_btnPWMSO_Click
End Sub
and the attached is what it looks like.