B
Basil
Hiya,
I have a load of tabs page1, page2, page3, etc
I have an option group above. When the user clicks the option, it will
return a value (1,2,3,4,...). I want it to set focus to the corresponding
page but am having trouble making a dynamic reference to the page control.
Can you help please?
This is my code that is failing:
Private Sub frameUpdate_Click()
Dim pg As String 'also doesn't work when set to be a Control
pg = "Page" & frameUpdate.Value
Me.[pg].SetFocus
End Sub
Thanks loads,
Basil
I have a load of tabs page1, page2, page3, etc
I have an option group above. When the user clicks the option, it will
return a value (1,2,3,4,...). I want it to set focus to the corresponding
page but am having trouble making a dynamic reference to the page control.
Can you help please?
This is my code that is failing:
Private Sub frameUpdate_Click()
Dim pg As String 'also doesn't work when set to be a Control
pg = "Page" & frameUpdate.Value
Me.[pg].SetFocus
End Sub
Thanks loads,
Basil