troubleshooting Question

Access query needed to bring all vertical records for a given town into a single horizontal record.

Avatar of pcoghlan
pcoghlan asked on
Microsoft AccessSQL
9 Comments1 Solution241 ViewsLast Modified:
I have the following table that lists the nearest 5 towns for a given starting point. Each [TownFrom] has multiple neighboring towns and a distance to it.

[TownFrom], [TownTo], [Distance]
Miami,Palm Beach,11
Miami,Fort Lauderdale,22
Miami, Delray Beach,33
and so on...

I am trying to create the following table with all neighors in a single memo field. Note inclusion of the ") - (".

[TownFrom],[Neighbor1], [Neighbors]
Miami, Palm Beach (11) - Fort Lauderdale (22) - Delray Beach (33)

Before I get the comments about this being bad design I know. The existing table and one I am trying to create are steps on the way to exporting this in a specific format to a static document.

Any input much appreciated.

Paul
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros