I asked this question a few months back but now I'm working out of MS-Access and I'm unsure how to proceed. I have a query that lists the bldid, unitid, and resident id in separate columns. I'd like to modify the query output in Microsoft Access so that each resident that shares a building / unit shows as a new column on the same row as shown below. But since I'm limited to MS Access I can't seem to use with, cte, or rownumber. I'm at a loss as to how to do this so any help would be appreciated.
Query1
BldID | UnitID | ResidentID |
---|---|---|
1 | 201 | John Smith |
1 | 201 | Jane Doe |
1 | 202 | Daniel Jones |
1 | 202 | Mark Garcia |
2 | 201 | Maria Lee |
2 | 201 | Paul Williams |
2 | 201 | Mike Jones |
Desired Output from edited Query
BldID | UnitID | Res1 | Res2 | Res3 |
---|---|---|---|---|
1 | 201 | John Smith | Jane Doe | |
1 | 202 | Daniel Jones | Mark Garcia | |
2 | 201 | Maria Lee | Paul Williams | Mike Jones |