General information
Category:
Forms & Form designer
>>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,
I'm not quite to the classmaking level yet, but can't wait to get there. I can already see how important it is. Is there some information on it somewhere on the Thread?
Thanks,
JD
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only