slobberingdog
New member
- Local time
- Tomorrow, 00:31
- Joined
- Jul 8, 2011
- Messages
- 3
Hi Guys,
Using Access 2003 - I have a main form with a tab control. The tab control has 5 pages - each page has a subform - each subform is linked to the next. ie: on page 1 the subform is linked to the main form, the subform on page 2 is linked to subform1 via a field on the main form and so on. This works really well for the subforms on pages 1 to4 of the tab control. The subform on the fifth page links ok,, and lets me add / edit one record - but when I try to add (click, tab, enter) a second record it jumps straight back to the first field on the first record.
I have manually added some records to the underlying table and they show up perfectly, however I can only edit the first record, not any of the others.
The only bit of code I have is in the double click event on one field on each subform which indexes to the next page, and therefore the next linked subform:
---
Private Sub Description_DblClick(Cancel As Integer)
Dim tabctl As TabControl
Set tabctl = Forms![Management Projects - Tabbed].TabCtl31
tabctl.Pages(4).SetFocus
End Sub
---
There is no code in any section of the subform I am having problems with, and no code in the main form at all.
I was hoping someone might be able to point me in the right direction.
Thanks in advance.
slobberingdog
Using Access 2003 - I have a main form with a tab control. The tab control has 5 pages - each page has a subform - each subform is linked to the next. ie: on page 1 the subform is linked to the main form, the subform on page 2 is linked to subform1 via a field on the main form and so on. This works really well for the subforms on pages 1 to4 of the tab control. The subform on the fifth page links ok,, and lets me add / edit one record - but when I try to add (click, tab, enter) a second record it jumps straight back to the first field on the first record.

I have manually added some records to the underlying table and they show up perfectly, however I can only edit the first record, not any of the others.
The only bit of code I have is in the double click event on one field on each subform which indexes to the next page, and therefore the next linked subform:
---
Private Sub Description_DblClick(Cancel As Integer)
Dim tabctl As TabControl
Set tabctl = Forms![Management Projects - Tabbed].TabCtl31
tabctl.Pages(4).SetFocus
End Sub
---
There is no code in any section of the subform I am having problems with, and no code in the main form at all.
I was hoping someone might be able to point me in the right direction.
Thanks in advance.
slobberingdog