I tried to search for this but I'm just not getting it.
I want to filter a report depending on a field in a form. The field is text.
Here's the simplest way I found, but it returned NO values in the report. Am I missing anything?
[Assigned To] is the Field in the Report (which is grouped by)Code:Private Sub cmdViewReferral_Click() DoCmd.OpenReport "Referral Report", acViewPreview, , "[Assigned To] = '" & Me.[Employee Name] & "'" End Sub
[Employee Name] is the Field in the Form