relationships

Forum home » Delegate support and help forum » Microsoft Access Training and help » Relationships

Relationships

resolvedResolved · Urgent Priority · Version 2007

Tania has attended:
Access Intermediate course
Access Advanced course

Relationships

How do you determine which field to link with which field? I have linked PK with PK but it won't let me enforce Referential Integrity as no unique index found for the referenced field of the primary table (but my PK IS uniquely numbered so I am confused!)

RE: Relationships

Hi tanya

Thanks for your question

Could you provide a bit more detail for me please? What are the contents of your two tables. Also are your two PKs autonumber fields

Thanks

Stephen

RE: Relationships

Hi Stephen
Thank you for your speedy response. I think a week on the course rather than a day may have been in order lol! I work for a charity so have a members table. I have the whole membership database on an excel spreadsheet and have split it up into about 10 or 15 tables with no more than about 13 fields per table. I have tables for events and committees, subs, etc. I am trying to do this step by step. Am I right in thinking that most of my tables have a many to many relationship? If that's the case do I need to make an intermediary table for each and every Committee/Event table? HELP - this is too confusing!
Tania

Edited on Sat 8 May 2010, 20:50

RE: Relationships

Hi Tania,

I should first make it clear that I am a delegate like you not a tutor. Incase you are still looking for help I am willing to try and help. You have mentioned three tables that you have.

All of your tables should have a primary key field, which should be Long Integer type. If table 'A' is linking to an intermediary table or to any child table, then the primary key in table 'A' will link to a field that is NOT the primary key in the other table (lets call it 'B'). The link field in table B will be a long integer field placed in the table specifically for the purpose of linking to table A.

For the members and subs tables these would probably be best linked as many to many with and intermediary table. Although subs as a many table without intermediary is also possible.

With regards to committes this depends whether you are talking about committee meetings, about which members belong to which committees or both. To simply keep records on who belongs to which committees then this will be one to many with members being on the many side, and the committees being a look-up table.

I hope this helps.

Regards, Mark

RE: Relationships

Hi Mark
thanks so much for offering to help! I have spent a couple of times trying to sort out my many "many to many" tables and got myself in a tizz because I have approx 2500 members already. I think I need someone actually with me on this looking at what I'm actually working with. Thanks again. Tania

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Zoom feature for queries

If youare working on on query design and creating a calculated field, it can be hard to view the whole statement. You can hold the shift key down and press F2, to show the zoomed up version of the query field

View all Access hints and tips


Server loaded in 0.07 secs.