tab control data source

eugz

Registered User.
Local time
Today, 03:06
Joined
Aug 31, 2004
Messages
128
Hi All.
Is it passible to use diferent data sources to each tab control pages?
If yes how use tableA for Page1 and tableB for Page2 of tab control.
Thanks.
 
Yes, it is possible.
Look at "DemoTabControlA2002.mdb" (attachment, zip).
There you can see 3 tables, (tblMain, Table1, Table2), 3 forms,
MainForm (with 2 tabs) linked on the tblMain, Subform1 linked on
the Table1, and Subform2 linked on the Table2.
Look at the "Relationships".
Subform1 and Subform2 are linked with MainForm via "Link Child Fields" and
"Link Master Fields" properties, (fID, f1Num and fID, f2Num).
Adapt it in your mdb.
 

Attachments

To amplify MStef's answer, yes and no.

Yes, you can have multiple tables, one on each tab of a multi-tab form. One tab can be based on the parent table (or the parent can be on a non-tabbed part). The other tabs can be based on child tables of the parent table.

No, you cannot have INDEPENDENT multiple tables. The tables feeding the tab pages must be related to the table that feeds the form itself.

Exception: If the main form is unbound, the tabs can do some pretty wild things, but then you face the headache of having to muck about with unbound forms. Which is its own form of torture.
 

Users who are viewing this thread

Back
Top Bottom