Hi, Please could you assist in correct code as below?
I have a tab control called Criteria and a tab called Parts (page 1).
After a combo box have been selected the form must open on the Parts tab but the form opens on the first tab (0) which is not the wanted tab
I have a tab control called Criteria and a tab called Parts (page 1).
After a combo box have been selected the form must open on the Parts tab but the form opens on the first tab (0) which is not the wanted tab
Code:
Private Sub PartCategory_AfterUpdate()
DoCmd.Close acForm, "New Entry - Spares", acSaveYes
DoCmd.OpenForm "New Entry - Spares"
Me.Criteria.Pages.Item("Parts").SetFocus
End Sub