G
Guest
I have a main form.
On this, I have a nested subform -- a subform with another subform nested in it.
I want the user to be able to tab from the mainform to the 1st (nested) subform, from that to the second subform, and then back to the main subform to enter a new record.
Using the Tab order, I can get from the main form to the nested subform. Following instructions on this site, I've entered the following:
a new unbound text box, with 0 height and 0 width and named it [invisiblebox]. In the class module, I've written:
Private Sub invisiblebox_GotFocus()
Me.Parent.firstcall.SetFocus
End Sub
(firstcall is the name of the control I want the tab to jump to)
This doesn't work. I'm clearly doing something wrong.
On this, I have a nested subform -- a subform with another subform nested in it.
I want the user to be able to tab from the mainform to the 1st (nested) subform, from that to the second subform, and then back to the main subform to enter a new record.
Using the Tab order, I can get from the main form to the nested subform. Following instructions on this site, I've entered the following:
a new unbound text box, with 0 height and 0 width and named it [invisiblebox]. In the class module, I've written:
Private Sub invisiblebox_GotFocus()
Me.Parent.firstcall.SetFocus
End Sub
(firstcall is the name of the control I want the tab to jump to)
This doesn't work. I'm clearly doing something wrong.