473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to change relationships?

Hey there,

I was wondering if it was possible that anyone could please help me.

I have two tables, one is the main table (GeneralInformation) with two
ID fields, a websiteID (primary key) and a supplierID. In the second
table (SupplierInformation) i have one ID field, supplierID, which is
the primary key. The format of the database is that each website can
have many suppliers, so a 1 to many relationship, but it only seems to
work the other way round.

Can someone please help me out with this?

Regards
Adham

May 29 '07 #1
7 2282
On May 29, 3:00 pm, adham <adhamsel...@yahoo.comwrote:
Hey there,

I was wondering if it was possible that anyone could please help me.

I have two tables, one is the main table (GeneralInformation) with two
ID fields, a websiteID (primary key) and a supplierID. In the second
table (SupplierInformation) i have one ID field, supplierID, which is
the primary key. The format of the database is that each website can
have many suppliers, so a 1 to many relationship, but it only seems to
work the other way round.

Can someone please help me out with this?

Regards
Adham
In relational design, the basic rule is: children knows their parent.
Thus, SupplierInformation should have a websiteID foreign key, meaning
that the current supplier participate in the website referenced by
websiteID column.

Now, if a supplier may participate in more websites, an extra table
relating websites with suppliers should be created, e.g.
WebsiteSuppliers( websiteID, supplierID), setting both columns as the
primary key.

As you may have realized, MS-Access is far easier than English ;)

May 29 '07 #2
On May 29, 11:27 am, spier <spie...@yahoo.comwrote:
On May 29, 3:00 pm, adham <adhamsel...@yahoo.comwrote:
Hey there,
I was wondering if it was possible that anyone could please help me.
I have two tables, one is the main table (GeneralInformation) with two
ID fields, a websiteID (primary key) and a supplierID. In the second
table (SupplierInformation) i have one ID field, supplierID, which is
the primary key. The format of the database is that each website can
have many suppliers, so a 1 to many relationship, but it only seems to
work the other way round.
Can someone please help me out with this?
Regards
Adham

In relational design, the basic rule is: children knows their parent.
Thus, SupplierInformation should have a websiteID foreign key, meaning
that the current supplier participate in the website referenced by
websiteID column.

Now, if a supplier may participate in more websites, an extra table
relating websites with suppliers should be created, e.g.
WebsiteSuppliers( websiteID, supplierID), setting both columns as the
primary key.

As you may have realized, MS-Access is far easier than English ;)
Yes it is unfortunatly.

Ok let me rephrase, why the F*&% does access pick its own
relationships (1 to 1 or 1 to many etc), and is there a way that i can
decide that (which relationship should exist between tables), seeing
that i am the person creating the database.

Thanks
Adham

May 29 '07 #3
On May 29, 12:06 pm, adham <adhamsel...@yahoo.comwrote:
On May 29, 11:27 am, spier <spie...@yahoo.comwrote:


On May 29, 3:00 pm, adham <adhamsel...@yahoo.comwrote:
Hey there,
I was wondering if it was possible that anyone could please help me.
I have two tables, one is the main table (GeneralInformation) with two
ID fields, a websiteID (primary key) and a supplierID. In the second
table (SupplierInformation) i have one ID field, supplierID, which is
the primary key. The format of the database is that each website can
have many suppliers, so a 1 to many relationship, but it only seems to
work the other way round.
Can someone please help me out with this?
Regards
Adham
In relational design, the basic rule is: children knows their parent.
Thus, SupplierInformation should have a websiteID foreign key, meaning
that the current supplier participate in the website referenced by
websiteID column.
Now, if a supplier may participate in more websites, an extra table
relating websites with suppliers should be created, e.g.
WebsiteSuppliers( websiteID, supplierID), setting both columns as the
primary key.
As you may have realized, MS-Access is far easier than English ;)

Yes it is unfortunatly.

Ok let me rephrase, why the F*&% does access pick its own
relationships (1 to 1 or 1 to many etc), and is there a way that i can
decide that (which relationship should exist between tables), seeing
that i am the person creating the database.

Thanks
Adham- Hide quoted text -

- Show quoted text -
Thats alright, i just figured it out. You have to specify the correct
indexing conditions. im such an idiot.

thanks for helping out.

regrads
adham

May 29 '07 #4
>
As you may have realized, MS-Access is far easier than English ;)

Yes it is unfortunatly.
Well, as a foreign, I was telling about my english ...
>
Ok let me rephrase, why the F*&% does access pick its own
relationships (1 to 1 or 1 to many etc), and is there a way that i can
decide that (which relationship should exist between tables), seeing
that i am the person creating the database.
Every time one draw a relation between two primary keys ( and, maybe,
autonumber columns), he/she will get a 1 to 1 relation. Toi create a
foreign key, you have to select a long numeric data type.
May 29 '07 #5
On May 29, 12:35 pm, spier <spie...@yahoo.comwrote:
As you may have realized, MS-Access is far easier than English ;)
Yes it is unfortunatly.

Well, as a foreign, I was telling about my english ...
Ok let me rephrase, why the F*&% does access pick its own
relationships (1 to 1 or 1 to many etc), and is there a way that i can
decide that (which relationship should exist between tables), seeing
that i am the person creating the database.

Every time one draw a relation between two primary keys ( and, maybe,
autonumber columns), he/she will get a 1 to 1 relation. Toi create a
foreign key, you have to select a long numeric data type.
I didnt notice anything about your english. Where are you from
originally?

Just wondering, could you please explain the difference between a
foreign key and a primary key?

Regards
Adham

May 29 '07 #6
On May 29, 12:35 pm, spier <spie...@yahoo.comwrote:
As you may have realized, MS-Access is far easier than English ;)
Yes it is unfortunatly.

Well, as a foreign, I was telling about my english ...
Ok let me rephrase, why the F*&% does access pick its own
relationships (1 to 1 or 1 to many etc), and is there a way that i can
decide that (which relationship should exist between tables), seeing
that i am the person creating the database.

Every time one draw a relation between two primary keys ( and, maybe,
autonumber columns), he/she will get a 1 to 1 relation. Toi create a
foreign key, you have to select a long numeric data type.
I didnt notice anything about your english. Where are you from
originally?

Just wondering, could you please explain the difference between a
foreign key and a primary key?

Regards
Adham

May 29 '07 #7
>
As you may have realized, MS-Access is far easier than English ;)

Yes it is unfortunatly.
Well, as a foreign, I was telling about my english ...
>
Ok let me rephrase, why the F*&% does access pick its own
relationships (1 to 1 or 1 to many etc), and is there a way that i can
decide that (which relationship should exist between tables), seeing
that i am the person creating the database.
Every time one draw a relation between two primary keys ( and, maybe,
autonumber columns), he/she will get a 1 to 1 relation. Toi create a
foreign key, you have to select a long numeric data type.
Jun 1 '07 #8

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

Similar topics

20
by: Ed | last post by:
I am running Access 2002 and just ran the built in Access wizard for splitting a database into a back end (with tables) and front end (with queries, forms, modules, etc.). After running the...
0
by: Megan | last post by:
Hi Everybody- I know that this is a really, really long post, but I wanted to try to give you as much background as possible. So here's a quick overview of the issues I'm asking for help with:...
2
by: Max | last post by:
Hi. I really hope someone can help me. Going slowly insane with this problem. I have a two Access 2000 databases. One is the backend containing tables and some admin queries. The other is the...
1
by: ANSWER | last post by:
I have database with 18 tables. Table (tblPersonal_Info) is main table indirectly linked to 7 tablest by relation 1 to many. This 7 tables have next primary keys: 1/ tblExperience > Pk > 1....
6
by: GaryDave | last post by:
My school registration database has not been quite right after a recent compact and repair (done while I was away). Though most of the many forms and subforms are working normally, one form in...
7
by: davegb | last post by:
I'm totally new to relational database design. My boss has asked me to create a database of information on the employees in our group. Seemed to me like a simple application to learn the ropes. A...
10
by: Dixie | last post by:
I need to delete some relationships in code. How do I know what the names of those relationships are?
45
by: salad | last post by:
I'm curious about your opinion on setting relationships. When I designed my first app in Access I'd go to Tools/Relationships and set the relationships. Over time I'd go into the window and see...
4
by: celinesuzzarini | last post by:
Hi all, I have split my database a while ago, and now, I want to add a table with relationships to other existing tables. I open the BE, create my table, and then go to the relationships...
13
by: ARC | last post by:
Hello all, Prior to going live with my app, I have questions on relationships theory. My prior app was done in Access 97, and I did NOT use relationships at all. I have 65 tables in my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.