foxtrot123
Registered User.
- Local time
- Yesterday, 22:50
- Joined
- Feb 18, 2010
- Messages
- 57
I have data like so, in a junction table between tblPatients and tblComplications:
I need it restructured like so:
I tried a crosstab, but that allows only one column header (e.g., Column Header "Complication" would return columns for CompABC, CompXYZ, etc.)
Any suggestions on how to also return CompDate as a column header? At some point in the process I can concatenate the two fields using: CompDateColumn: [Complication] & "_" & [CompDate]
Much thanks for any pointers.
Code:
PtID PtCompID Complication CompDate
1 1 CompABC 1/2/05
1 2 CompXYZ 5/2/05
2 3 CompABC 3/2/10
2 4 Comp123 3/2/10
etc.
Code:
PtID CompABC CompABC_Date CompXYZ CompXYZ_Date Comp123 Comp123_Date
1 Yes 1/2/05 Yes 5/2/05
2 Yes 3/2/10 Yes 3/2/10
Any suggestions on how to also return CompDate as a column header? At some point in the process I can concatenate the two fields using: CompDateColumn: [Complication] & "_" & [CompDate]
Much thanks for any pointers.