Access Relationships

I am learning Access 2013 and I am struggling with relationships. In the db attached I am trying to make the following relationships:

1) I want to make sure that any one organization is associated with any deal just once.

2) I want to make sure that any one lawyer is associated with any deal just once.

If  I could see how this is done I think I could understand how to make these in other db as well.
James CoatsComputer Info. Sys. StudentAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Can an Organization be associated with ONLY ONE Deal? Or can an Organization be associated with MORE THAN ONE Deal, but only one time?

Can a Lawyer be associated with ONLY ONE Deal? Or an a Lawyer be associated with MORE THAN ONE Deal, but only one time?

I'm assuming both are true - that is, an Organization can be associated with multiple Deals, but you don't want to associate a single Organization with the same Deal more than once. If so, then you'd need Join tables with Unique Indexes setup:

tOrganization_Deal
-------------------------
OrgID
DealID
etc etc

Now create a unique index on the table with the OrgID and DealID fields included.

Same with Lawyers and Deals:

tLawyer_Deals
==============
LawyerID
DealID
etc

Create a unique index with LawyerID + DealID.
James CoatsComputer Info. Sys. StudentAuthor Commented:
Scott,

Thanks I am trying that now.

Sam
James CoatsComputer Info. Sys. StudentAuthor Commented:
Scott,

I am totally confused on this. Attached is what I came up with. I hope it is a little correct.

JamesAttorneyDB2a.accdb
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Those seem to be correct, at least as far as I can tell. I can't enter a record for the same Lawyer + Deal - isn't that what you asked?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
James CoatsComputer Info. Sys. StudentAuthor Commented:
That is correct. It just seemed to easy to be correct. Thank you!
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Sometimes easy is good :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.