Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 2nd, 2003, 03:40 PM
Authorized User
Join Date: Jun 2003
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default how can i best implement a many to many relation?


i have a many to many relation...how can i implement this at best with using access?


Old July 2nd, 2003, 03:57 PM
Authorized User
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts


   Use two 1 to many relationships. Three tables total. The table in the middle is usually referred to as a Junction or Helper table.


Table 1 = tblCommunities (Primary Key = CommunityID)
Table 2 = tblHousePlans (Primary Key = HousePlanID)
Business Rule = The same House Plan can exist in different Communitites.
Table 3 = tblHousePlans2Communites (Primary Key = Multi field primary key (CommunityID and HousePlanID))

1 to Many relationship between Tables 1 and 3 (CommunityID to CommunityID
1 to Many relationship between Tables 2 and 3 (HousePlanID to HousePlanID)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relation update ajaidass ADO.NET 1 January 11th, 2007 01:25 PM
constraint for 1-to-n relation j_yan MySQL 0 December 10th, 2004 11:03 PM
find relation in dataset with c# kobystud C# 2 April 21st, 2004 01:04 AM
SQL Relation Lucian Ion SQL Server 2000 3 October 25th, 2003 03:31 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.