Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining multiple records from one table to a single record in another

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
I have two tables one has addresses and the other has store locations. What I need to do is pick the 10 closest stores for each record in the address table from the store table. I have a function to calculate the distance but struggling with how to get the store records that match into another table that has each matching store record as a field in the new table.
 
Yes, I took a look at your link but my sticking point is once I have the closest stores I need to get each location into the address file as new fields so I can print them out on a piece that goes in the mail.
 
What are you using to produce the output? Could it handle a cursor with 10 records rather than one record with 10 fields?

Tamar
 
That is what I have currently. I think I have a work a round for now. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top