G
GeorgeMar
Gentle folks
I seek you help in designing a lookup table. My lookup
table, tblLookup, looks like this:
Field: LookupID LookupName LookupCode
Type: Autonumber Text Text
Index: Primary Key
Data: 23 Sales Dept1
24 Design Dept2
The related table tblEmployee has the the field Dept as
the primary key.
1. Should the foreign key in tblLookup be LookupID or the
LookupCode?
2. If the foreign key is LookupID, what happens when
someone inadvertently deletes a record; the ID is lost
forever from the lookup table and the tblEmployee will
have to be rebuilt?
3. If the foreign key is LookupCode, should the
lookupCode become the indexed primary key?
4. Does having the lookup tables in the Front End help
the network traffic?
Any advice on better design will be much welcomed.
many thanks
george
I seek you help in designing a lookup table. My lookup
table, tblLookup, looks like this:
Field: LookupID LookupName LookupCode
Type: Autonumber Text Text
Index: Primary Key
Data: 23 Sales Dept1
24 Design Dept2
The related table tblEmployee has the the field Dept as
the primary key.
1. Should the foreign key in tblLookup be LookupID or the
LookupCode?
2. If the foreign key is LookupID, what happens when
someone inadvertently deletes a record; the ID is lost
forever from the lookup table and the tblEmployee will
have to be rebuilt?
3. If the foreign key is LookupCode, should the
lookupCode become the indexed primary key?
4. Does having the lookup tables in the Front End help
the network traffic?
Any advice on better design will be much welcomed.
many thanks
george