jgoodman00
Programmer
- Jan 23, 2001
- 1,510
I have written a sub to run on the before update event of a form in order to produce a history table of changes made to the data. This works perfectly in theory, but it falls down badly when a subform is introduced. As soon as the focus switches to the subform, it will register the changes & create a history entry. In the case of my db, it then switches to another subform & then back to the main table. By the time you have actually edited the record & moved onto the next record, it has saved at least 2 entries into the history table. Therefore, is there any way to surpress this function so that it only runs upon record-change. I am thinking that attaching the code to the 'on lost focus' event of the last control on the form, but i get the feeling it will then save a copy of the updated data, not the existing......
Any suggestions???? James Goodman
j.goodman00@btinternet.com
Any suggestions???? James Goodman
j.goodman00@btinternet.com