Hi,

I have a custom module that has a Many-to-Many relationship with Accounts and a Many-to-Many relationship with Contacts.

When I create the Custom Record under an Account, the Account appears in the subpanel of the record, the same is true for when I create the Custom Record under a Contact ,the Contact appears in the subpanel under the Record.

When I create it under a Contact I also when that contacts account to appear in the Accounts Subpanel..

if I have a contact "James" and he has an Account "JJOB"

When I create the Custom Record under JJOB the Account will appear in the Accounts Subpanel and the Contact will not - that is OK.

When I create the Custom Record under James, the Contact James will appear under in the Contacts subpanel, but not the Account, That is not OK

I have three tables to work with in the DB

custom_module
custom_module_contacts
custom_module_accounts

Rgds
Chris