Tabbed Forms

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
 
J

Jonathan Parminter

-----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


.
 
J

Jonathan Parminter

-----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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top