J
James Jones
I have two tables as follows (only showing minimum fields)
Rooms
RoomCode
RoomCode is the primary key
Guests
GuestID
RoomCode
FirstName
SecondName
GuestID is the PK and RoomCode is the FK and there is a one to many
relationship Rooms to Guests respectively max 2.
I need to be able to list all the Guests in each Room something like this
RoomCode FirstName1 SecondName1 FirstName2 SecondName2
for inclusion in a report or form at some stage (not sure which yet.)
So basically trsanspose the list of guests intop columns. I have a sneaky
suspicion this isn't possible but does anyone know if it is in one or
multiple querries I can combine into one later?
Thanks
Rooms
RoomCode
RoomCode is the primary key
Guests
GuestID
RoomCode
FirstName
SecondName
GuestID is the PK and RoomCode is the FK and there is a one to many
relationship Rooms to Guests respectively max 2.
I need to be able to list all the Guests in each Room something like this
RoomCode FirstName1 SecondName1 FirstName2 SecondName2
for inclusion in a report or form at some stage (not sure which yet.)
So basically trsanspose the list of guests intop columns. I have a sneaky
suspicion this isn't possible but does anyone know if it is in one or
multiple querries I can combine into one later?
Thanks