
January 11th, 2004, 05:33 PM
|
 |
Lazy User
|
|
Join Date: Nov 2003
Location: Hungary, Europe
Posts: 339
  
Time spent in forums: 13 h 23 m 57 sec
Reputation Power: 8
|
|
|
A possible solution is to write a sub which:
after sorting the table by Salesman name, steps from record to record and if the same salesman name is found then steps back to the first occurrence of that name and puts the city name into the corresponding location field.
When running the cycle, you need to use a counter that records the number of occurrence of a particular name to determine:
- the number of records you need to step back to find the first occurrence of that name
- the location field to put the city name into
__________________
BRegs,
TBÁrpi
"I can only show you the door. You're the one who has to walk through it."
|