Change Query Data Format (1 Viewer)

naobao

Registered User.
Local time
Today, 13:40
Joined
Feb 13, 2014
Messages
76
How to use modules to convert query from A format to B format?

A Format
101001 A2
101001 A8
101001 C1
101001 D12
101002 B12
101002 C1
101002 J10

change to...B format
101001 A2, A8, C1, D12
101002 B12, C1, J10

Thanks!
 

isladogs

MVP / VIP
Local time
Today, 21:40
Joined
Jan 14, 2017
Messages
18,212
Hi naobao
See if the attached crosstab query is any use to you.
If not, then it will need the use of vba.
 

Attachments

  • Naobao.zip
    28 KB · Views: 40

naobao

Registered User.
Local time
Today, 13:40
Joined
Feb 13, 2014
Messages
76
Hi naobao
See if the attached crosstab query is any use to you.
If not, then it will need the use of vba.
I have many records in query, crosstab is too many fields...
I think vba is good to me.

Thank you so much!
 

Gasman

Enthusiastic Amateur
Local time
Today, 21:40
Joined
Sep 21, 2011
Messages
14,260
I'd be looking at Minty's suggestion?
 

Users who are viewing this thread

Top Bottom