Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with option group while using multiple-page forms

Status
Not open for further replies.

Zune

Programmer
Feb 28, 2001
1
0
0
DK
I am making a general form, where I want to display different subforms using "Option-group's toggle buttons" to do this i have made a subform containing several page breaks, - but when i assign the event of changing to another page the toggle buttons doesn't work. i can't get them to shift focus, i have tried putting the event on different procedures(on focus, mousedown ....)

thank in advance.
 
Add similar to the afterupdate event of your general form's option group:
Me.NameOfSubFormAsSeenByGeneralForm.SetFocus
Select Case (Me.NameOfOptionGroup)
Case 1 'you want page 1
GoToPage 1
Case 2
GoToPage 2
Case 3
GoToPage 3
End Select
Assumption: Your option groups toggle buttons values are the same as the page number you want to set the focus to... otherwise change the select case values. Hope this gives the results you need. Gord
ghubbell@total.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top