Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare contents of two dbfs
Message
From
23/04/2003 16:19:26
 
 
To
23/04/2003 13:04:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00780688
Message ID:
00780837
Views:
12
Hi José,

I think that the only way to check for changes in table2 is to have a copy of that table made on last update of table1. This way, everytime you want to update table1 with table2, you first go and check table2 and table2_copy; if changes appear, then update table1 with those changes.
When comparing table2 and table2_copy you will have to do it by the primary key. If you try to compare them on recno() then you can get fooled by deleted records.

Hope it gives you a starting point.
Regards,
Javier.

>Hi,
>
>I would like two compare the contents of two dbf tables. I would like to update table1 with the contents of certain fields in table2, if an new record exists within table2.
>
>I don't know how to begin, any suggestions are appreciated.
>
>Thank you,
Previous
Reply
Map
View

Click here to load this message in the networking platform