>What's the easiest way to put a "save to database" button and a "cancel" button on a form?
>
>JD
As far as the buttons go, it's very easy, just drop them on your form or wherever, and place the appropriate code behind them in the click event. Don't forget to set an appropriate caption for them. 8') You might also want to set the Default property to true for the save button, and the Cancel property to true for the cancel button.
As for the code, that is up to you. It really depends on whether or not you are using views. IOW, it depends on your implementation as to how you do the save and cancel. For example: If you are using views, I would be willing to bet that you would need to call TABLEUPDATE somewhere from the save button, and you would need to call TABLEREVERT somewhere from the cancel button.
If it were me, I would create a class for each of these buttons so that I could just drop them on the form.
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch