A
adam.sherratt
Dear all,
After spending a fair bit of time searching the forums, I have finally
given in. I have a form that contains 3 subforms. The subforms are
all based on queries. The subforms contain a set of combo boxes
(basically used to asign a value of Pass/Fail). I can tab out of the
1st subform to the main and back into the second form no problem.
' set focus to main form
Me.Parent.Form.SetFocus
' then to the subform *control* on the main form
Forms![frmLVQAUpdate]!sfrmLVQAResultsDataIntegrity.SetFocus
' and finally to the field in the subform
Me!Pass.SetFocus
The problem is that I can no longer tab within the subforms. I think
this is because they are based on queries i.e. in desing mode there is
one set of combo boxes, but when viewed after running the query there
are 3 boxes to update. (it basically creates a table where a value is
true, and creates the combo box accordingly, so from design mode there
is 1 box, but in view mode there could be many)
Before I used this code I could tab within each subform, from combo to
combo no problem. now, I can tab from subform 1 to subform 2, but when
I press tab, it doesn't tab from control 1 to control 2, it jumps to
subform3.
Any suggestions? Its a bit hard to explain my setup, because of the
nature of the subforms/queries.
Thanks
After spending a fair bit of time searching the forums, I have finally
given in. I have a form that contains 3 subforms. The subforms are
all based on queries. The subforms contain a set of combo boxes
(basically used to asign a value of Pass/Fail). I can tab out of the
1st subform to the main and back into the second form no problem.
' set focus to main form
Me.Parent.Form.SetFocus
' then to the subform *control* on the main form
Forms![frmLVQAUpdate]!sfrmLVQAResultsDataIntegrity.SetFocus
' and finally to the field in the subform
Me!Pass.SetFocus
The problem is that I can no longer tab within the subforms. I think
this is because they are based on queries i.e. in desing mode there is
one set of combo boxes, but when viewed after running the query there
are 3 boxes to update. (it basically creates a table where a value is
true, and creates the combo box accordingly, so from design mode there
is 1 box, but in view mode there could be many)
Before I used this code I could tab within each subform, from combo to
combo no problem. now, I can tab from subform 1 to subform 2, but when
I press tab, it doesn't tab from control 1 to control 2, it jumps to
subform3.
Any suggestions? Its a bit hard to explain my setup, because of the
nature of the subforms/queries.
Thanks