Query to consolidate records

Chas

New member
Local time
Yesterday, 20:50
Joined
May 11, 2013
Messages
4
I have a table of tenants with data as follows:

Suite............Ten1Last .............Ten1First
101..............Smith...................Joe
101..............Smith...................Mary

I want to do this to the data with a query:

Suite.......Ten1Last..........Ten1First.......Ten2Last......Ten2 First
101.........Smith...............Joe.............. Smith...........Mary

You might say I want to un-normalize the data. Any help is appreciated.
 
It might make it easier if you concatenate the First and Last names in a query first,
i.e. Occupant: Trim(Nz([LastName]) & " " & Nz([FirstName])).

Nz() to account for Null fields, and Trim() to deal with leading and trailing spaces.
 
Thank you Galaxiom and Nigel for the reply. I will continue with the thread that Galaxiom suggests.

Charlie
 

Users who are viewing this thread

Back
Top Bottom