Hello friends,
I have two tables, one called Company Profile and the second called Contact Persons. The field "Company Name" exists in both, each contact person belongs to a company that is in the Company Profile table (one-to-many relationship with Contact Persons as many).
I created a Form-Subform. What I want to happen is that on my subform (Contact Persons), I have a 'generate record' button that will show me a report of the all the Contact Persons that belong to the same Company X.
I tried doing this
DoCmd.OpenReport "rcdContacts", , "[Company Name] = " & Me.Company_Name
but the report is not filtered and contains records of all contact persons, not the ones in Company X. Please advise.