electronicsgeek
New Member
- Joined
- Apr 3, 2002
- Messages
- 28
I'm stuck on trying to accomplish the following:
I have a multipage form with identical controls. What I want to do is to create a sub or function that will only change items on the page which the contol is on. For example:
On MultiPage1 I have a combobox control named S1Type as well as another combo box named S1Option andon Multipage2 there are corresponding controls named S2Type and S2Option. The list goes on for several MultiPages.
Instead of having a function for each SxType combocontrol that changes the rowsource value for SxOption, I want to call a separate sub that takes in the value of which control called the sub and performs the changes to the other controls on the same multipage.
Basically if S1Type calls the sub then the changes are performed on S1Option but if S2Type calls the sub then only S2Option is changed... so on and so on for S3Type, S4Type, etc.
Is this possible?
Thanks
I have a multipage form with identical controls. What I want to do is to create a sub or function that will only change items on the page which the contol is on. For example:
On MultiPage1 I have a combobox control named S1Type as well as another combo box named S1Option andon Multipage2 there are corresponding controls named S2Type and S2Option. The list goes on for several MultiPages.
Instead of having a function for each SxType combocontrol that changes the rowsource value for SxOption, I want to call a separate sub that takes in the value of which control called the sub and performs the changes to the other controls on the same multipage.
Basically if S1Type calls the sub then the changes are performed on S1Option but if S2Type calls the sub then only S2Option is changed... so on and so on for S3Type, S4Type, etc.
Is this possible?
Thanks