M
maella
Is it possible choose the pages of an option group control from a combo?
If so how could I get it?
Thanks
If so how could I get it?
Thanks
Wayne-I-M said:Use DoCmd.GoToControl "Form name on tab control" on the AfterUpdate event
of the combo
Like this
Say you have a main form with 3 tabs .
On each tab is a form (form1 is on tab 1 - form 2 is on tab 2 and form 3 is
on tab 3)
On you main form create a combo (source = value list Form1;Form2;Form3) and
put this after update
Private Sub ComboName_AfterUpdate()
If Me.ComboName = "form1" Then
DoCmd.GoToControl "Form 1"
End If
If Me.ComboName = "form2" Then
DoCmd.GoToControl "Form 2"
End If
If Me.ComboName = "form3" Then
DoCmd.GoToControl "Form 3"
End If
End Sub
This said I think it would be much simpler to just click the tab ??