Basically I have a table Customers and a table Accounts. #customer is the sole primary key of Customers, and #account+#customer is the composite key of Accounts.
A customer cannot create a new account without being a customer, and so normally I would enforce referential integrity and in access it would appear as a one to many relationship.
However, according to my boss, in rare circumstances, an entry in Customers can be deleted, and the orphaned accounts associated with a new #customer.
So at the moment I have it set up how I would have, only without referential integrity, but I don't think this is going to work properly for three main reasons:
1) The address in Customers needs to be displayed in the accounts form.
2) The #customer part of the composite key would need to be changed somehow.
3) There is obviously no referential integrity, and there are too many customers to limit accounts.#customer to a combo.
Note that I've made this simpler than it looks - the customer table is connected to other repeating groups too.
I think my question is whether this is a common problem, and if so is there a common solution to it?
Aidan
A customer cannot create a new account without being a customer, and so normally I would enforce referential integrity and in access it would appear as a one to many relationship.
However, according to my boss, in rare circumstances, an entry in Customers can be deleted, and the orphaned accounts associated with a new #customer.
So at the moment I have it set up how I would have, only without referential integrity, but I don't think this is going to work properly for three main reasons:
1) The address in Customers needs to be displayed in the accounts form.
2) The #customer part of the composite key would need to be changed somehow.
3) There is obviously no referential integrity, and there are too many customers to limit accounts.#customer to a combo.
Note that I've made this simpler than it looks - the customer table is connected to other repeating groups too.
I think my question is whether this is a common problem, and if so is there a common solution to it?
Aidan