>Thank you Hilmar.
You are welcome. One correction, about referential integrity: An alternative, instead of copying first the parent and then the child, is to temporarily disable referential integrity. This is not possible with Visual FoxPro (as far as I know; I didn't check the latest versions), but it is possible with alternative RI-programs, such as TaxRI, available here on the Universal Thread (search in downloads for LastName = "Meester", if you are interested).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)