G
Guest
I have a need to condense multiple records (potentially maximum of 14) from a
table onto a single record for use in a report. I would like to create a
query that can be used in the report.
The fields that need to be condensed are Session and WCode, each may exist
from 0 to 14 times for any given scenario.
The query ideally would contain only the Wcode value as a numbered set from
1 to 14, relevant to the value of Session.
To clear up any ambiguity in my description belwo is a sample of what I am
attempting and failing to achieve.
Original
Name Year Period Session Wcode
---------------------------------------------
XXXX 2005 01 1 A
XXXX 2005 01 4 B
XXXX 2005 01 5 C
XXXX 2005 01 7 D
New query layout
Name Year Period Wcode1 Wcode2 Wcode3 Wcode4 Wcode5 Wcode6 Wcode7
XXXX 2005 01 A B C
D
Any help or guidance or constructive criticism of amy approach greatfully
received.
Cheers,
Steve
table onto a single record for use in a report. I would like to create a
query that can be used in the report.
The fields that need to be condensed are Session and WCode, each may exist
from 0 to 14 times for any given scenario.
The query ideally would contain only the Wcode value as a numbered set from
1 to 14, relevant to the value of Session.
To clear up any ambiguity in my description belwo is a sample of what I am
attempting and failing to achieve.
Original
Name Year Period Session Wcode
---------------------------------------------
XXXX 2005 01 1 A
XXXX 2005 01 4 B
XXXX 2005 01 5 C
XXXX 2005 01 7 D
New query layout
Name Year Period Wcode1 Wcode2 Wcode3 Wcode4 Wcode5 Wcode6 Wcode7
XXXX 2005 01 A B C
D
Any help or guidance or constructive criticism of amy approach greatfully
received.
Cheers,
Steve