That should do it. Consider the example provided by Allen where he uses CompanyID. If your query retrieves duplicate values of CompanyID, I would not call the function from the query. Instead, call the function from a control. If you are using a report and calling the function from a particular control within a Report does not work, you can use VBA in the Report's On Load and On Format events.
From Allen's site ...
Code:
For the example above, you could set the ControlSource of a text box to:
=ConcatRelated("OrderDate", "tblOrders", "CompanyID = " & [CompanyID])