Out of Focus

paddleman44

New member
Local time
Yesterday, 21:04
Joined
Mar 2, 2007
Messages
7
Hello All.

I have a number of sub-subforms on a tab that I want to be visible (or not) based on values of a cbo on the main form. I have figured this one out. However, when I call for the sub-subform to be Visible=False, I get a bug report stating that you cannot make visible=False when a control in that item has the focus.

Is there a way to have no focus on a sub-form? (the ones I have trouble with are all continuous sub-forms---if that makes a difference).

All help is appreciated.

DJ
 
You would have to set the focus either to a control on the main form before setting the visible property of the subform, or another control on another visible subform before setting the visible property of the one to false.
 
You would have to set the focus either to a control on the main form before setting the visible property of the subform, or another control on another visible subform before setting the visible property of the one to false.

I had the same problem on a form that I was working on a few weeks ago. Your solution is exactly what I needed to do to get it to change the visible property of the control. And it makes sense - the property won't (or shouldn't) change when the control has the focus.
 

Users who are viewing this thread

Back
Top Bottom