Dear Expert,
I am trying to capture the old field data to another field after modification.
eg. in the form, existing bin_location field I would like to change from "ABC" to "DEF", after changing, bin_location becomes "DEF" while Old_bin Location captured as "ABC".
How do I achieve it?
Thanks
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks.
It work after change it from the Form OnInputChange but I discovered that I need to move to next record in order for the change to take effect.
Is it possible to update the change the moment my cursor leave the Bin_location.
Thanks again.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
OnInputChange at the Bin_location.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The result is the same, need to move to next record before being updated.
I can see the Old_Bin Location being updated in the Form after changing the Bin_Location, if I hit "escape" key after leaving Bin_Location field, my record is not updated. If I press down arrow key to next record, my changes would take effect.
Could it be other control in place?
Thanks.
i have created new field called newitem
i have writen code in No. onvalidate trigger
its working fine.
after changing the item No., newitem field is automatically filled without moving to next record or pres down arrow.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
RIS Plus, LLC
MVP - Business Apps
Thanks for the advice. Will take note.
By the way, I know why in the FORM, not updated after leaving the field.
From further search in mibuso, all I need to do, is to insert "Currform.Update(True)" into OnafterValidate.
Problem solved.
Thanks
What if you need to create another form for the same table? Now you're going to have to look through all the code in this other form and decide what to copy, and managing versions will become more difficult. Code that handles validation should be written in the table triggers, not on the form.
RIS Plus, LLC
MVP - Business Apps
Thanks for the advise.
I have reverted my decision from Form to Table validation after some investigation.
Thanks