Hi everyone. My first ever posting. 
I have created a tab control called Localinfo in a form. There is only one page in the tab control called Localinfopage. I copied a textbox field called Town into the tab page.
From a combo box in the main parent form, I am attempting to enable a field in the tab control page when a value "UK" is selected. This works fine when the field is outside the tab control page. Inside it, I can't seem to find (and have searched hard with no success) the correct syntax.
This is what I have so far, needless to say, this doesn't work.
Private Sub AuCountry_AfterUpdate()
If Me.AuCountry.Value = "UK" Then
Me.Localinfopage.Town.Enabled = True
End If
End Sub
Private Sub Form_Load()
Me.Localinfopage.Town.Enabled = False
End Sub
How do I reach the properties of this Town field in the page control please?
Many thanks for any help!
James
I have created a tab control called Localinfo in a form. There is only one page in the tab control called Localinfopage. I copied a textbox field called Town into the tab page.
From a combo box in the main parent form, I am attempting to enable a field in the tab control page when a value "UK" is selected. This works fine when the field is outside the tab control page. Inside it, I can't seem to find (and have searched hard with no success) the correct syntax.
This is what I have so far, needless to say, this doesn't work.
Private Sub AuCountry_AfterUpdate()
If Me.AuCountry.Value = "UK" Then
Me.Localinfopage.Town.Enabled = True
End If
End Sub
Private Sub Form_Load()
Me.Localinfopage.Town.Enabled = False
End Sub
How do I reach the properties of this Town field in the page control please?
Many thanks for any help!
James