Hi,
I have a form with a tab control with sub forms on each page. When the Save button on the main form is clicked i want to disable all of the controls on all of the subforms.
I am however coming across a problem, when i get to the point of disabling the controls on the sub form on which changes had just been made. If i enter changes into a text box and then click save, even though i have a line of code that moves the focus from the sub form to a command button on the main form the code falls over with the 'cannot disable a control that has the focus' error.
Is there a focus for each form, even when the form is not active?
How can i get around this problem please?
TIA



