Hello Mike
There is insert in your code, which makes new records.
You have to delete old records before insert or use replace after first insert
Best wishes, Vladimir Zhuravlev
MVP-2006-2011, PHD in Math and Physics ,
host of
www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.