finding out which tab control is selected (1 Viewer)

Topher

Registered User.
Local time
Today, 14:52
Joined
Apr 18, 2000
Messages
72
Hi there,

i have 4 pages on a tab control and one command button - i would like that command button to print the report that coressponds to each of the tabs....therefore i need to check which tab is selected before i can print the report....is there anyways to find out which control tab is selected, to allow the print button to print the correct report??

i've tried using setfocus but i can't grab the tab control properly...

anyone have any ideas?
- Topher
 

Axis

Registered User.
Local time
Today, 14:52
Joined
Feb 3, 2000
Messages
74
Tab controls use a Page Index to refer to each page, starting with 0 from the left. Check the Page Index property on each page of the tab to be sure of the order. You can then do a simple test of If [TabControlName].Page =1 Then etc., etc.

[This message has been edited by Axis (edited 04-29-2000).]
 

Topher

Registered User.
Local time
Today, 14:52
Joined
Apr 18, 2000
Messages
72
Thats great! thanks, it did work but i had to use the value option of the tab control not the page index

ie - tabcontrolname.value
and not tabcontrolname.page

THANKS!
 

Users who are viewing this thread

Top Bottom