Allen Browne replied to JD McLeod
08-Feb-10 03:58 AM

Perhaps these 5 tables would do what you need:
a) AccountType: one record for each type of account, with AccountTypeID
primary key.
b) Process: one record for each type of process you may need to handle, with
ProcessID primary key.
c) AccountTypeProcess: One record for each combination of account type and
process. (For example, if the "Accounts Payable" has 5 processes associated
with it, there will be 5 *records* in this table for that account type.)
d) Account: one record for each account, with an AccountID primary key, and
AccountTypeID foreign key.
e) AccountProcess: one record for each process associated with this account.
So, if it is an "Accounts Payable" type, it will have 5 records to cover each
of the processes.
With table (c) above, you have taught your database what processes are
associated with each type of account. So, when you enter a new account into
(d), you can use the AfterInsert event of the form to Execute an Append
query statement to append the appropriate records automatically into table
(e.)
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.