I have read this question on this forum several times and even with that being said, I can not figure out why I can not make this VB code to work. Here is my debug error. Please help.
Private Sub cmdPrintRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptPrintRecord"
strCriteria = "[EmployeeID]='" & Me![EmployeeID] & "'"
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub
The red text has been identified as my issue?