I provided example of full path reference to Page2_2. It worked for me.
If you want to change captions of tab pages on Form2, why is code behind Form3?
Consider:
Code:
Private Sub Command144_Click()
Dim LabelTxt As String
Dim intPageNum As Integer
For intPageNum = 0 To Forms!Form1!Form2.Form.TabCtl2.Pages.Count - 1
'LabelTxt = rs.Fields(Language)
LabelTxt = "Test_10"
Forms!Form1!Form2.Form.TabCtl2.Pages(intPageNum).Caption = LabelTxt 'write to form label
Debug.Print Forms!Form1!Form2.Form.TabCtl2.Pages(intPageNum).Caption
Next
End Sub
or
Code:
For intPageNum = 0 To Me.Parent.Form.tabCtl2.Pages.Count - 1
'LabelTxt = rs.Fields(Language)
LabelTxt = "Test_10"
Me.Parent.Form.tabCtl2.Pages(intPageNum).Caption = LabelTxt 'write to form label
Debug.Print Me.Parent.Form.tabCtl2.Pages(intPageNum).Caption
Next
Should have Option Explicit in header of every code module. Force this as default in new modules: in VBE > Tools > Options > check Require Variable Declaration