ConcatRelated function in a query

Do not call the Module the same as the function, it can sometimes make things confusing for VBA.
Rename the module something like “DatabaseUtils” for instance.

Make sure the function is really defined as Public Function ConcatRelated(..., the Public here is important, otherwise the function will not be visible outside the module itself.

Leave a Comment