N
NeonSky via AccessMonster.com
Good Day Everyone,
Got a bit of a tough one today that has had me stumped for the last few hours.
I hope someone can assist with this rather challenging question.
First please view my sample dataset as follows.
Name YearUsage ArrivalDate DepartDate Confo
Joe 2007 11/09/2007 11/16/2007 111
Joe 2007 11/16/2007 11/23/2007 222
Joe 2007 11/23/2007 11/30/2007 333
Joe 2007 12/21/2007 12/28/2007 444
What I would like to do is create a single record row for consecutive
reseravations. As indicated where Departure Dates match Arrival Dates. So our
final output should read as follows.
Name YearUsage ArrivalDate DepartDate Confo
Joe 2007 11/09/2007 11/30/2007 111,
222, 333
Joe 2007 12/21/2007 12/28/2007 444
FYI - Per the assistance of Marshal Walsh the concatenating portion of this
query can be performed by first creating another table that pulls all values
from the source table excluding the confo info...
SELECT Name, IIf(False," ",Null) AS Concat INTO tbldestination
FROM tblSource
GROUP BY Name, Address;
Next to perform the concatenation the following example illustrates this
concept....
UPDATE tbldestination INNER JOIN tblsource ON tbldestination.Name=tblsource.
Name SET tbldestination.concat = ([concat]+", ") & [source.confo]
Of course many thanks for your time and efforts!
Got a bit of a tough one today that has had me stumped for the last few hours.
I hope someone can assist with this rather challenging question.
First please view my sample dataset as follows.
Name YearUsage ArrivalDate DepartDate Confo
Joe 2007 11/09/2007 11/16/2007 111
Joe 2007 11/16/2007 11/23/2007 222
Joe 2007 11/23/2007 11/30/2007 333
Joe 2007 12/21/2007 12/28/2007 444
What I would like to do is create a single record row for consecutive
reseravations. As indicated where Departure Dates match Arrival Dates. So our
final output should read as follows.
Name YearUsage ArrivalDate DepartDate Confo
Joe 2007 11/09/2007 11/30/2007 111,
222, 333
Joe 2007 12/21/2007 12/28/2007 444
FYI - Per the assistance of Marshal Walsh the concatenating portion of this
query can be performed by first creating another table that pulls all values
from the source table excluding the confo info...
SELECT Name, IIf(False," ",Null) AS Concat INTO tbldestination
FROM tblSource
GROUP BY Name, Address;
Next to perform the concatenation the following example illustrates this
concept....
UPDATE tbldestination INNER JOIN tblsource ON tbldestination.Name=tblsource.
Name SET tbldestination.concat = ([concat]+", ") & [source.confo]
Of course many thanks for your time and efforts!