Hi,
in one of my Tables I have a OnModify Trigger where i put new Date and Time for my data record.
I use a Form for Change the Data Record, when i edit the record with the form the date and the time will changed in table, thats is correct.
In my Form i have two textboxes where i read the date and the time of the data record, but after change the record it doesn't update. Only when i go out of the form and open it again or i scroll forward or back data records.
What must i do so that this fields are changed at the moment when i edit the record ?
Thanks
(Oo)=*=(oO)
0
Comments
I suggest you put the code OnValidate (on each field of your table - or at least on fields you are changing and want to change date time fo rec) you don't need the code onModify.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
To make the form refresh after a field is validated, you put CurrForm.UPDATE into the field's OnAfterValidate trigger.
RIS Plus, LLC
Even if you have some controls to show globals on form that are changed, you don't have to call CurrForm.UPDATE. But not allways.
It's kind of hard to explain exactly when do you need to call and when not. Usually you try without CurrForm.UPDATE and if changes are not seen you try with CurrForm.UPDATE. Sometimes even that doesn't help.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
RIS Plus, LLC