Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form with tab controls

Status
Not open for further replies.

cgarmas

Technical User
Jun 16, 2005
37
US
Hello,
I am looking for help with a form that has a subform with a tab control. The main form has a subform with a multipage tab control, the first two pages of the tab control are based on one table wich I splited into two pages (this is linked to the main form based on Pk-Fk). There are three more pages with a subform in each one, the record source of these forms are three tables linked to the table of the first two pages. In the main form I have a two command buttons to add and edit the data.
The problem I have is that when I first open this form I am able to edit or enter a new record with no problem. I have hidden command buttons to move the cursor to the next page, and as I said this works fine for the first record, when I start a new record I move fine until the second page, at this point the cursor always tries to skip the 3rd page and jump to the 4th page, but in a behavior as if it was trying to move back from the last page. I can't understand the change of behavior in the movement of these pages, Could anyone please help me with this one?
 
hi cgarmas,
having a tab control doesn't mean you automatically have subforms. A tabcontrol is just one and the same form with a lot of space to put controls on - of course you can put subforms on the tabs, but that is a different matter.

Anyway, have a look at tab order; right click on your form, and choose tab order. Here you can set how the cursor is moving through your forms
Hope this helps.

Pampers.

You're never too young to learn
 
Thank you pampers for the reply, I checked the page order and it is in the order I needed it to be, as i said before I can navigate fine between the tabs, but after the first record the cursor tries to skip the third tab and get a message that can't get the focus to the 4th tab and jumps right to the last tab, which is the only form that is available after this. Any other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top