G
gaugust
I have 3 pages in a tab control. Each page has a subform. I manually set the
enable property of pages 2 and 3 in the tab control to false. I would like to
set the enable property of pages 2 and 3 to true in the after update event of
the combo boxes in subform 1 (page 1). The names of pages 2 and 3 in the tab
control are Page2 and Page3. I have tried the following:
If Me.Combo58.ListIndex = 0 Or Me.Combo58.ListIndex = 1 Then
Forms!frmMain!Page2.Form.Enabled = True
Forms!frmMain!Page3.Form.Enabled = True
Else
Forms!frmMain!Page2.Form.Enabled = False
Forms!frmMain!Page3.Form.Enabled = False
End If
This code is not working. I have tried a number of different combinations,
but have not found code that works. Could you let me know what the correct
syntax is?
Thanks.
enable property of pages 2 and 3 in the tab control to false. I would like to
set the enable property of pages 2 and 3 to true in the after update event of
the combo boxes in subform 1 (page 1). The names of pages 2 and 3 in the tab
control are Page2 and Page3. I have tried the following:
If Me.Combo58.ListIndex = 0 Or Me.Combo58.ListIndex = 1 Then
Forms!frmMain!Page2.Form.Enabled = True
Forms!frmMain!Page3.Form.Enabled = True
Else
Forms!frmMain!Page2.Form.Enabled = False
Forms!frmMain!Page3.Form.Enabled = False
End If
This code is not working. I have tried a number of different combinations,
but have not found code that works. Could you let me know what the correct
syntax is?
Thanks.