
Originally Posted by
June7
Instructions say have to execute 3 command lines to set focus to specific control on other subform.
Apologies, obviously missed that.
I changed my code to:
Code:
Private Sub Field5_LostFocus()
Me.Parent.SetFocus
Me.Parent!Subform_2.Form.SetFocus
Me.Parent!Subform_2.Form!Field1.SetFocus
End Sub
But I get the following error when tabbing from the Field5:
Code:
Run-time error '2449':
There is an invalid method in an expression
I click on Debug and the following is highlighted in error:
Code:
Me.Parent!Subform_2.Form.SetFocus
Any ideas?