J
John61
We're making an Access application and one of its tables could have hundreds
of fields. I think I'll split it to a main table and a few sub-tables with
one-to-one relationship. On the entry form, I'll use a tab control and
subforms on tabs (linking with PK, e.g., MAIN_ID). I just don't know the
best way to set key fields for sub-tables.
For example: On the main table, primary key: MAIN_ID (auto number). On a
sub-table, is it better to set a primary key ? i.e. SUB1_ID(PK),
MAIN_ID(FK). Or only FK?
Thanks.
John
of fields. I think I'll split it to a main table and a few sub-tables with
one-to-one relationship. On the entry form, I'll use a tab control and
subforms on tabs (linking with PK, e.g., MAIN_ID). I just don't know the
best way to set key fields for sub-tables.
For example: On the main table, primary key: MAIN_ID (auto number). On a
sub-table, is it better to set a primary key ? i.e. SUB1_ID(PK),
MAIN_ID(FK). Or only FK?
Thanks.
John