T
TC
Go to table design view, click the first field's record selector, then
shift-click the second field's record selector. Now >both< of them are
selected simultaneously. Now click the key icon (or whatever it is) to
define those two fields as the (composite) primary key.
There's nothing wrong in principle with composite primary keys. In some
cases, they can start to get unweildy - for example, if you got to the point
where the composite key required 5 fields (say). In that case, you might add
an autonumber for use as the primary key, & define the 5 other fields as a
unique index. Then you could use the autonumber (not the 5 fields) in other
places as required.
HTH,
TC
shift-click the second field's record selector. Now >both< of them are
selected simultaneously. Now click the key icon (or whatever it is) to
define those two fields as the (composite) primary key.
There's nothing wrong in principle with composite primary keys. In some
cases, they can start to get unweildy - for example, if you got to the point
where the composite key required 5 fields (say). In that case, you might add
an autonumber for use as the primary key, & define the 5 other fields as a
unique index. Then you could use the autonumber (not the 5 fields) in other
places as required.
HTH,
TC