>>I have a field textbox in a grid that, if the user make some changes, I want to fire some code.
>>
>>I don't want to fire that code if no change occured in the textbox. Right now, I have put the code in the Valid() event so it is fired each time.
>>
>>Usually, I create a form property that contain the value of the field which can then be compared at the Valid() level with the new value of the textbox and see if changes occured.
>>
>>Is there a better way to do that without having to use a form property?
>
>why not compare this.value with table.fieldname?
>> When-Valid technique is pretty old one. Now we have InteractiveChange event which is really useful for tracking user changes. If you want to fire some code just once, you can change some flag property in this event and than evaluate it in Valid event (or for Grid in AfterRowColumnChange event)
Edward Pikman
Independent Consultant