Open Tab and hide others based on ComboBox selection

J

Jim Fazakas

Is there a way to control which tab of a MultiPage control is viewed
when opening a form, based on the value of a ComboBox control that had
been selected? I want that selection to be viewing only the
appropriate corresponding tab on the multipage control when the user
opens the form.

I expect that vbscript will run from the Item_Open event on the form.
I don't know how to integrate the MultiPage control and it's tab names
in the code.

MORE DETAIL:
I am designing a new message form and have added two controls. The
first is a ComboBox and the second is a MultiPage. There are three
choices in the ComboBox and three Page tabs in the MultiPage. When
composing a message, using this form, a selection is made from the
ComboBox and the Page that refers to the selection is filled out. The
message is then sent.

When someone opens the message, the tab that is shown is not always
the one I want the reader to see. It always defaults to the first
tab, Page1. I want it to display only that tab that corresponds to
the selection from the ComboBox control.

SPECS:
1 ComboBox control
Display name of control = ComboBox1
Field name = Choice1
List Type = Droplist
Possible Values = choiceA,choiceB,choiceC

1 MultiPage control
Three Tabs = Page1, Page2, Page3
Display Name of control = MultiPage1

choiceA references content on Page1
choiceB references content on Page2
choiceC references content on Page3

If choice B is selected from the ComboBox, I would want only Page2 to
be displayed when the reader opens the form.

Any help is appreciated!
Thanks,
- Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top