I have couple of subforms on my mainform. I use Count(textboxes) on each subform to count records entered on sunforms and then count all subforms total in mainform Count(txtbox). Problem is, subforms count when user loses focus from the current record so if user just enters data in subform and closes mainform, count is not done on mainform (it does when i open mainform later or when i click savebutton on mainform). I have a code on mainform unload event which tells user that there are no records and one value in mainform combox will be changed to a value i mention in my mainform unload event. So when user closes mainform, this message pops up as it does not count if user do not move to another record in subform or do not click mainform. Which means it changes my mainform combobox value, which is an issue. So i want force user to click mainform savebutton before closing mainform. Or is there another way to ensure this?