G
Guest
Hello out there!
I have a continuous form that displays a number of rows and a total at the
bottom. There are times that I want to use this form for display purposed
only, and other times that I want to allow the user to enter a number in a
text box and click on a button to proceed.
I want to hide the text box and the button when the form is used for viewing
only, however, since these are the only controls on the form that are not
locked, when I try to set the textbox visible property to false, I get an
error message saying that I can't hide a control that has the focus.
So my question is this... how can I set the focus to a different control on
the form when all the other controls are locked?
Any help would be greatly appreciated.
I have a continuous form that displays a number of rows and a total at the
bottom. There are times that I want to use this form for display purposed
only, and other times that I want to allow the user to enter a number in a
text box and click on a button to proceed.
I want to hide the text box and the button when the form is used for viewing
only, however, since these are the only controls on the form that are not
locked, when I try to set the textbox visible property to false, I get an
error message saying that I can't hide a control that has the focus.
So my question is this... how can I set the focus to a different control on
the form when all the other controls are locked?
Any help would be greatly appreciated.