Apr 25 2008, 07:48 AM
Using a Tab Control with multiple pages that have buttons to lauch other forms or reports (F/R). When finished with the F/R I would like to retun to the tab with the button that launched the F/R. At present the return is always to PageIndex 0.
Also, I put a MsgBox function in the Tab's OnClick event but my message does not dispaly; it simply moves to the tab I selected.
Apr 25 2008, 07:52 AM
Do you want this message box to appear when you select a specific tab? If so I would put your code in the tab controls After_Update event and use the tab controls value property to find out which page you are on.
As for returning to the correct tab on the control when you return to the form, provided you don't close or manipulate the tab control it should stay as you left it, meaning you would return to that tab anyway.
Apr 25 2008, 08:25 AM
OnChange would be the even t of choice normally.
Why is it returning to the first Page though?
Are you closing the form?
The selected Tab page shouldn't alter - unless you so instruct it...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here