ConcatRelated

Nita

New member
Local time
Today, 10:41
Joined
Feb 14, 2020
Messages
19
Hi,

I am trying to use de ConcatRelated from Allen Browne and when I try to run it on a query it's with the error 3471.
I don't understand what it means.
It to be used on a mail merge word document
 
I am using Access 2016.

That's a sample of the database where I have the Module.
If you can find my error I would apreciate.
Thank you
 

Attachments

Add option explicit to the declarations of your module. Then compile it and you will see your errors.
You should always use option explicit.
Code:
Option Compare Database
Option Explicit

your arguments in the function call also dont look right to me
New: ConcatRelated("campoacriar","QuotasJuntas","MesAnoValor","QuotasSolicitadas","strSeparador")
 
Last edited:
You were right, wrong arguments.
Resolved
SELECT DISTINCT ID, ConcatRelated("Mes", "Teste1", "ID = '" & [ID] & "'", "QuotasSolicitadas")
FROM Teste1
Now, I need one of those fields formated as long texto when the table is created
 

Users who are viewing this thread

Back
Top Bottom