transpose

K

kurt

I have a tabel like this

master, detail
A,2
A,3
A,4
A,1
A,1
B,4
B,5
B,1

I would like to present theese data as

MAster, detail1, detail2, detail3 , detail4, detail5
A,2,3,4, 1,1
B,4,5
in a datasheet layout

Anyone have an Idea

Thanks

Kurt
 
J

Jerry Whittle

Something like below gets close except that it only shows one A1 combination:

TRANSFORM First(Kurt.detail) AS FirstOfdetail
SELECT Kurt.master AS Master
FROM Kurt
GROUP BY Kurt.master
PIVOT "detail" & [detail];
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top