473,508 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Many to many relationship

How to set up a many to many relationship. I know you need a third
table to join the other two. I need one table (table1) with
stock_numbers(unique), one table (table2) with job-numbers(unique) and
I want to join them with a table (table3) with job-number linked with
a stock-number and the number-of-units-of-that-stock.

how is it done? so that the relationship window shows up:
table1 many to one table3
and
table2 many to one table3

Paul
May 31 '08 #1
2 2530
Assiming Table 1 has a Key StockNumberID (Auto, PK)
Table 2 has a Key JobNumberID (Auto, PK) - I hate
underscores

Your Third table should be

StockNumberID
JobNumberID
UnitsNeeded

You must set both StockNumberID and JobNumberID as joint Primary Keys
(Highlight them both & press the Key symbol)

Then set up your relationships with the 3 tables linking the obvious fiels
together

This will allow you so see all the stock reqired for each job or which jobs
are using a particular stock item

Phil

<pa*********@btinternet.comwrote in message
news:a8**********************************@k30g2000 hse.googlegroups.com...
How to set up a many to many relationship. I know you need a third
table to join the other two. I need one table (table1) with
stock_numbers(unique), one table (table2) with job-numbers(unique) and
I want to join them with a table (table3) with job-number linked with
a stock-number and the number-of-units-of-that-stock.

how is it done? so that the relationship window shows up:
table1 many to one table3
and
table2 many to one table3

Paul

May 31 '08 #2
The relationship window will reflect the actuality that you are using a
junction/intersection table to implement many-to-many. If you want
something different, you need to find a third-party relationship display
that does what you want -- I am not aware of any that do.

I have never had any problem with the relationship window reflecting what
actually _is_ rather than some abstracted view of "what it ought to be".

Larry Linson
Micrososoft Office Access MVP

<pa*********@btinternet.comwrote in message
news:a8**********************************@k30g2000 hse.googlegroups.com...
How to set up a many to many relationship. I know you need a third
table to join the other two. I need one table (table1) with
stock_numbers(unique), one table (table2) with job-numbers(unique) and
I want to join them with a table (table3) with job-number linked with
a stock-number and the number-of-units-of-that-stock.

how is it done? so that the relationship window shows up:
table1 many to one table3
and
table2 many to one table3

Paul

Jun 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3408
by: Larry R Harrison Jr | last post by:
I have an Access 97 database with 2 tables that have a one-many relationship. I have a SQL statement in the "one" table which I want to execute and insert 7 records into the "many" table, and I...
2
2672
by: Megan | last post by:
hello everybody, i know this is a very long post, but i wanted to provide as much detail as possible. quick overview- i want to create a couple of many to many relationships and am wondering...
3
7380
by: lorirobn | last post by:
Hello, I have a report which uses a subreport. When I run the report, I get "Enter Parameter Value" error message for "tblGuestRoom". I click ok and the report seems to work fine. I...
13
1866
by: the other john | last post by:
The trouble currently with 3 tables. I'm excluding non-relevant fields... tbl_users PK_user_ID tbl_developers PK_developer_ID FK_developer_user_ID FK_developer_project_ID
5
2973
by: Robert | last post by:
I am very new to .net and asp.net. I am trying to design an intranet page that has a SQL Server 2000 database. I understand how to connect to the data but am getting very confused on how to...
1
2469
by: Michael D. Reed | last post by:
I have two tables in an Access database with a Many-to-Many relationship, there is a connection table. The tables are , , and the connection table is this is a standard Many-to-Many relationship...
11
10603
by: RobertJohn | last post by:
Hi all I am using Access 2007 to start a small home library application, and so far it has two tables. 1. Books, with fields Book_ID (Primary Key) and Title, and 2. Authors, with fields...
2
294
by: paulcjcross | last post by:
How to set up a many to many relationship. I know you need a third table to join the other two. I need one table (table1) with stock_numbers(unique), one table (table2) with job-numbers(unique) and...
6
4047
by: NicoleCartrette | last post by:
Going back to school is easier said than done.. This was posted to an older thread earlier but I don't think it got any attention. Your help is appreciated Professor requires we create a...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.