N
NAHolmes
Newbie here.
I'm trying to create relationships between tables & correctly use Primary
Keys.
I need to import data from Excel into a table which will have only 3 columns:
QTY - Ref - Drawing
None of the rows will have unique data (i.e. the same data for Ref & Drawing
could appear more than once).
This table will be 'Take-Off'
For each 'Ref', I need another table that lists all of the sub-assemblies
for that Ref.
In that table, there will be multiple rows with the same data for 'Ref', one
row for each sub-assembly.
This table will be 'Parts'
For each Part, I need another table that lists all of the sub-components for
that Part.
In that table, there will be multiple rows with the same data for 'Part',
one row for each sub-component.
This table will be 'Components'
my questions are:
1. Do I need a primary Key in each table?
2. If so, is the only option is AutoNumber?
3. Have I got the structure totally wrong?
I can produce a Query to produce the total Parts & shown this on a Report.
But it all goes horribly wrong when I try to extend the total funtion to
Components.
What is confusing me most, is that the data needs to have same value in many
rows, making the logic of a primary key ant applicable.
I have tried to disect the 2007 example Northwind, but it's much too
complicated for me to clearly see the logic.
Any help would be gratefully received.
I'm trying to create relationships between tables & correctly use Primary
Keys.
I need to import data from Excel into a table which will have only 3 columns:
QTY - Ref - Drawing
None of the rows will have unique data (i.e. the same data for Ref & Drawing
could appear more than once).
This table will be 'Take-Off'
For each 'Ref', I need another table that lists all of the sub-assemblies
for that Ref.
In that table, there will be multiple rows with the same data for 'Ref', one
row for each sub-assembly.
This table will be 'Parts'
For each Part, I need another table that lists all of the sub-components for
that Part.
In that table, there will be multiple rows with the same data for 'Part',
one row for each sub-component.
This table will be 'Components'
my questions are:
1. Do I need a primary Key in each table?
2. If so, is the only option is AutoNumber?
3. Have I got the structure totally wrong?
I can produce a Query to produce the total Parts & shown this on a Report.
But it all goes horribly wrong when I try to extend the total funtion to
Components.
What is confusing me most, is that the data needs to have same value in many
rows, making the logic of a primary key ant applicable.
I have tried to disect the 2007 example Northwind, but it's much too
complicated for me to clearly see the logic.
Any help would be gratefully received.