UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Tab Control    
 
   
Redhawk
post Apr 25 2008, 07:48 AM
Post #1

UtterAccess Addict
Posts: 177



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.

Any suggestions?
Go to the top of the page
 
+
Freaker
post Apr 25 2008, 07:52 AM
Post #2

UtterAccess VIP
Posts: 1,285
From: South East - United Kingdom



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.

Craig
Go to the top of the page
 
+
LPurvis
post Apr 25 2008, 08:25 AM
Post #3

UtterAccess Editor
Posts: 13,753
From: England (North East / South Yorks)



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...
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 02:56 AM