Well, there isn't really and easy way. You need to buffer your tables. Which means, changes the user makes on the form are not written to the table but saved in memory, then the SAVE button issues a tableupdate() and the CANCEL issues a tablerevert().
Look here on the UT KB for article#442 "Data Buffering in Visual FoxPro". Click the purple book, then arictles, then visual foxpro in general. Read the article it will explain the principals behind buffering.
Also look at the VFP FFC classes that should have come with vfp. The is a datamanager class that you can use, but read the article first, so you understand what it is doing.
hth
>What's the easiest way to put a "save to database" button and a "cancel" button on a form?
>
>JD
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!