![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am having a problem with primary keys. I have a main table called Transactions. It's primary key is made up of three fields (date, account, amount) so that Access will catch any bills that I try to enter more than once. There is another field, transactionID, that is an autonumber assigned to each record. TransactionID is linked to another table called Distribution. I need this link to perform cascade updates and deletes. When I attempt to do this, Access will not allow me to because this field is not a primary key. Any ideas as to how I can make this work? |
#3
| |||
| |||
|
|
Make Transactional your primary key. (date, account, amount) are attributes of your primary key. Semantic keys should not be used in a primary key, it is bad database design. You can catch your duplicates with a 'find duplicates' query Art Yates "delores h." <dhildebrandt (AT) shaw (DOT) ca> wrote in message news:e0bf09d6.0401102032.658ff9 (AT) posting (DOT) google.com... I am having a problem with primary keys. I have a main table called Transactions. It's primary key is made up of three fields (date, account, amount) so that Access will catch any bills that I try to enter more than once. There is another field, transactionID, that is an autonumber assigned to each record. TransactionID is linked to another table called Distribution. I need this link to perform cascade updates and deletes. When I attempt to do this, Access will not allow me to because this field is not a primary key. Any ideas as to how I can make this work? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.559 / Virus Database: 351 - Release Date: 1/7/2004 |
![]() |
| Thread Tools | |
| Display Modes | |
| |