Tabbed Forms

  • Thread starter Thread starter Deli22
  • Start date Start date
D

Deli22

I have a main form with a tab control which is hidden when the form is
opened. When the user chooses a customer from a combo box on the main form,
only the tabs that relate to that user's categories appear. If the customer
belongs to two categories, then two tabs appear with those categories.
The first tab is automatically selected and the subform is showing.

If the user leaves the record and does not click on the second tab, I would
like a message box to pop up stating that the user did not go to the second
tab.
Any suggestions?
Thanks,
Deli22
 
-----Original Message-----
I have a main form with a tab control which is hidden when the form is
opened. When the user chooses a customer from a combo box on the main form,
only the tabs that relate to that user's categories appear. If the customer
belongs to two categories, then two tabs appear with those categories.
The first tab is automatically selected and the subform is showing.

If the user leaves the record and does not click on the second tab, I would
like a message box to pop up stating that the user did not go to the second
tab.
Any suggestions?
Thanks,
Deli22


.
 
-----Original Message-----
I have a main form with a tab control which is hidden when the form is
opened. When the user chooses a customer from a combo box on the main form,
only the tabs that relate to that user's categories appear. If the customer
belongs to two categories, then two tabs appear with those categories.
The first tab is automatically selected and the subform is showing.

If the user leaves the record and does not click on the second tab, I would
like a message box to pop up stating that the user did not go to the second
tab.
Any suggestions?
Thanks,
Deli22
Hi Deli22,
Oooops accidently sent a blank post... and worse still it
has my name on it! :-)

The tab control has a value property that is associated
with pages. This is zero (0) based. That is,
tabCtl.value=0 <=> Page 1
tabCtl.value=1 <=> Page 2

You could use the tab control On_Change event to confirm
that a particular page number has been selected.

Luck
Jonathan
 
Back
Top