I've got a form that allows the user to input information to filter down a report. The DB is employee complaints so the field in the form lets the user put in an employee's name to filter down to complaint just from that one person.
Below is my code. I was hoping there's a way to allow users to put 2 or more names in the field, and maybe seperate them by commas or semicolons. And then the report shows records for both the names.
Any suggestions on how to code that?
Code:
If Not IsNull(frm!txtEmployeeName) Then
If strWhere <> "" Then
strWhere = strWhere & " AND "
End If
strWhere = strWhere & "[EmployeeName] LIKE '*" & frm!txtEmployeeName & "*'"
End If