G
Guest
can someone tell me what's wrong with this where clause?
Private Sub PrintReport_Click()
On Error GoTo Err_PrintReport_Click
Dim stDocName As String
stDocName = "Audit Reports"
DoCmd.OpenReport stDocName, acNormal, , "[IRB Number] = " & Forms![Audit
Report]![IRB Number]
Exit_PrintReport_Click:
Exit Sub
Err_PrintReport_Click:
MsgBox Err.description
Resume Exit_PrintReport_Click
End Sub
Private Sub PrintReport_Click()
On Error GoTo Err_PrintReport_Click
Dim stDocName As String
stDocName = "Audit Reports"
DoCmd.OpenReport stDocName, acNormal, , "[IRB Number] = " & Forms![Audit
Report]![IRB Number]
Exit_PrintReport_Click:
Exit Sub
Err_PrintReport_Click:
MsgBox Err.description
Resume Exit_PrintReport_Click
End Sub