I inherited this code and don't quite understand how it works, so please bear with me.
I have a main form with a TabControl. The tab control holds about 30 tabs - I guess they're called "pages". On each tab is a subform which holds all the controls.
Here's the problem: I enter partial data on Tab A. I do not press Save (a cmdbutton on subForm A) and I click on Tab B. Access is saving my data (to a SQL Server database). I do not want it to do this - especially since it's only partially filled. I want to pop a msgbox informing the user to press Save or Cancel.
Where do I 'catch' the "lost focus"-type event for this kind of control? I tried the lost_focus event for the subform that sits on the tab(or page, whatever the correct terminology is) but that didn't do it.
Thank you.
I have a main form with a TabControl. The tab control holds about 30 tabs - I guess they're called "pages". On each tab is a subform which holds all the controls.
Here's the problem: I enter partial data on Tab A. I do not press Save (a cmdbutton on subForm A) and I click on Tab B. Access is saving my data (to a SQL Server database). I do not want it to do this - especially since it's only partially filled. I want to pop a msgbox informing the user to press Save or Cancel.
Where do I 'catch' the "lost focus"-type event for this kind of control? I tried the lost_focus event for the subform that sits on the tab(or page, whatever the correct terminology is) but that didn't do it.
Thank you.