The other route possible would keep it at Mikes idea and can work, if your two databases can see each other serverside, MySQL has INSERT ON DUPLICATE KEY UPDATE, which could be used to merge data of customers from the source DB into the target DB. It's still the püreferred way to do this, knowing IDs to move will control what you read from prod into archive.
This, of course, is just theoretical quibbling as long as we don't know whether the two databases are on the same server and you have the option at all. You still didn't state that, but it seems likely the setup has a prod and archive DB on the same hosting or cloud, then moving data from database to database is the preferred method even if you fetch data for the interactive selection into the VFP client application.
It's inevitable you fetch data to display for the interactive choice, but that likely only needs some columns, not all data, surely not all detail data. Because of that still transporting data from DB to DB is the preferred method.
VFP has no merge statement or similar, so you'd always end up needing to program the merge logic with at least one insert and one update statement processing the two cases of new and changed data to go into archive remote view. I also know archives keeping a history, therefore only adding new data, even for data already in the archive the changed records will be inserted as new and be the more current version by an automatic version or timestamp column, then you can actually also just append or do a completely normal insert, the archive tables just need to drop the primary key constraint and/or have a new primary key column to accept records as many times as they are archived. That also has its pros.
Bye, Olaf.
Olaf Doschke Software Engineering