Hello,
I have created two command buttons on my subform, one to set the focus back on the main form and the other to set the focus on the next subform. Here are the codes i have set up:
Private Sub nextpgsub1_Click()
Forms!Tabs2!R7toR9Form.SetFocus
End Sub
Private Sub prevpgsub1_Click()
Forms!Tabs2!ID.SetFocus
End Sub
The first, which moves focus from my first subform (R4toR6Form) to my second subform (R7toR9Form), works fine. The second, which is intended to move focus from my first subform (R4toR6Form) back to my mainform (Tabs2), does not work. Any suggestions for how I can de-bug the latter? I will also need to do this on subsequent subforms...
Thank you!
E.
I have created two command buttons on my subform, one to set the focus back on the main form and the other to set the focus on the next subform. Here are the codes i have set up:
Private Sub nextpgsub1_Click()
Forms!Tabs2!R7toR9Form.SetFocus
End Sub
Private Sub prevpgsub1_Click()
Forms!Tabs2!ID.SetFocus
End Sub
The first, which moves focus from my first subform (R4toR6Form) to my second subform (R7toR9Form), works fine. The second, which is intended to move focus from my first subform (R4toR6Form) back to my mainform (Tabs2), does not work. Any suggestions for how I can de-bug the latter? I will also need to do this on subsequent subforms...
Thank you!
E.