ConcatRelated (1 Viewer)

Nita

New member
Local time
Today, 22:14
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
 

Nita

New member
Local time
Today, 22:14
Joined
Feb 14, 2020
Messages
19
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

  • Database2.zip
    24.9 KB · Views: 110

moke123

AWF VIP
Local time
Today, 17:14
Joined
Jan 11, 2013
Messages
3,920
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:

Nita

New member
Local time
Today, 22:14
Joined
Feb 14, 2020
Messages
19
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

Top Bottom