Below are three tables representing a simplified version of what I'm
trying to do. In each table, its "UniqueID" is an AutoNumber field, and
is the table's primary key.
I would like to be able to use one phone table that can be related to
both tblModel and tblVendor. tblModel and tblVendor contain dissimilar
fields. The ForeignKey in tblPhone would be the UniqueID of a row in
either tblModel or tblVendor.
Furthermore, each of these relationships can be one-to-many, the "many"
being on the tblPhone end.
When I attempt to establish these relationships, Access will not allow
it. I can kind of understand why this may be...for example, tblModel
could have a UniqueID 7, and so could tblVendor.
I would like to be able to use a single phone table instead of one each
for tblModel and tblVendor for a few reasons:
- I don't want to have to define two tables, especially if fields are
added later.
- If I want to run a query for all phone numbers in the database, that
query would me much simpler if it had to be run against one table only.
- There may be a couple more tables that need to have a relationship
with tblPhone, so if I could just add such a table and establish the
relationship, it would be quick and easy.
Perhaps what I'm trying to do can't be done. However, if someone
has an alternative that gives me the same end result, I'd be
interested in hearing it. I really don't want to have to set up a
separate phone table for each table that needs a phone table
relationship.
tblModel
---------
UniqueID
ModelName
Time
Date
tblVendor
---------
UniqueID
Address
Contact
tblPhone
-----------
UniqueID
ForeignKey
PhoneNumber 2 1218
gcloise,
<gc*****@hotmai l.comwrote in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Below are three tables representing a simplified version of what I'm
trying to do. In each table, its "UniqueID" is an AutoNumber field, and
is the table's primary key.
I would like to be able to use one phone table that can be related to
both tblModel and tblVendor. tblModel and tblVendor contain dissimilar
fields. The ForeignKey in tblPhone would be the UniqueID of a row in
either tblModel or tblVendor.
Furthermore, each of these relationships can be one-to-many, the "many"
being on the tblPhone end.
When I attempt to establish these relationships, Access will not allow
it. I can kind of understand why this may be...for example, tblModel
could have a UniqueID 7, and so could tblVendor.
I would like to be able to use a single phone table instead of one each
for tblModel and tblVendor for a few reasons:
- I don't want to have to define two tables, especially if fields are
added later.
- If I want to run a query for all phone numbers in the database, that
query would me much simpler if it had to be run against one table only.
- There may be a couple more tables that need to have a relationship
with tblPhone, so if I could just add such a table and establish the
relationship, it would be quick and easy.
Perhaps what I'm trying to do can't be done. However, if someone
has an alternative that gives me the same end result, I'd be
interested in hearing it. I really don't want to have to set up a
separate phone table for each table that needs a phone table
relationship.
tblModel
---------
UniqueID
ModelName
Time
Date
tblVendor
---------
UniqueID
Address
Contact
tblPhone
-----------
UniqueID
ForeignKey
PhoneNumber
gcloise,
You could add two foreign key columns to the tblPhone table, ModelID and
VendorID. If a phone number is associated with a Model and a Vendor, then
both columns would be populated. If not, only one column would be populated
and the other would be null.
-- Bill
<gc*****@hotmai l.comwrote in message
news:11******** **************@ q2g2000cwa.goog legroups.com...
Below are three tables representing a simplified version of what I'm
trying to do. In each table, its "UniqueID" is an AutoNumber field, and
is the table's primary key.
I would like to be able to use one phone table that can be related to
both tblModel and tblVendor. tblModel and tblVendor contain dissimilar
fields. The ForeignKey in tblPhone would be the UniqueID of a row in
either tblModel or tblVendor.
Furthermore, each of these relationships can be one-to-many, the "many"
being on the tblPhone end.
When I attempt to establish these relationships, Access will not allow
it. I can kind of understand why this may be...for example, tblModel
could have a UniqueID 7, and so could tblVendor.
I would like to be able to use a single phone table instead of one each
for tblModel and tblVendor for a few reasons:
- I don't want to have to define two tables, especially if fields are
added later.
- If I want to run a query for all phone numbers in the database, that
query would me much simpler if it had to be run against one table only.
- There may be a couple more tables that need to have a relationship
with tblPhone, so if I could just add such a table and establish the
relationship, it would be quick and easy.
Perhaps what I'm trying to do can't be done. However, if someone
has an alternative that gives me the same end result, I'd be
interested in hearing it. I really don't want to have to set up a
separate phone table for each table that needs a phone table
relationship.
tblModel
---------
UniqueID
ModelName
Time
Date
tblVendor
---------
UniqueID
Address
Contact
tblPhone
-----------
UniqueID
ForeignKey
PhoneNumber This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jeff Lanfield |
last post by:
Suppose I have users that can belong to organizations. Organizations
are arranged in a tree. Each organization has only one parent
organization but a user maybe a member of multiple organizations.
The problem that I'm facing that both organizations and individual
users may have relationships with other entities which are
semantically the...
|
by: Todd D. Levy |
last post by:
I have a primary table (containing basic contact information) and a
number of subsidiary tables (containing various additional information)
for employees.
Most of the subsidiary tables have a One-to-One relationship with the
primary table.
There is an exception. The employees attend various events and I have a
subsidiary table that...
|
by: Marco Simone |
last post by:
Hi,
I have 4 tables, tblCompany, tblA, tblB and tblC.
tblA, tblB and tblC contain same type of data, they should be in one table,
but since there are many fields, I split it into 3 tables.
Each Company can have many records in tblA, so relationship between
tblCompany and tblA, tblB and tblC are 'one to many'.
tblA, tblB and tblC are in...
|
by: Mindy |
last post by:
Hey,
I want to create links between my two tables. The primary keys of these
two tables are character variables, with length =11. I followed exactly
the instruction of Dummuy Book for ACCESS 2003. I click the primary key
of table A , and hold and move the mouse to table B. But nothing
happened. No line, no error reminders. Does anyone know...
|
by: shawnews |
last post by:
Ok...I'll first describe briefly what I've done.
Working from a paper form with over 200 fields - broken into 10 areas, I
created a database with 10 tables. I then created a form using those 10
tables, created queries and then reports based on those queries. All works
well until.... you complete a form and DO NOT fill one or more sections...
| |
by: adham |
last post by:
Hey there,
Im not even sure if im using the terminology correctly. Anyway heres
my questions. I have a three tables. The main table has two ID fields.
A website id, which is the primary key in that table, and a
SupplierID.
In the second table, websiteID is not the primary key, so when i want
to relate the table above with this one, its...
|
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 Author_ID (Primary Key), First_Name and Last_Name.
Both tables will be expanded later, after I have solved my current problem
Because one book can...
|
by: PW |
last post by:
Hi,
I set up a relationship between two tables with the itineraryid fields
in both tables:
tblDailyItinerary
tblDailyMeals
I have a form that writes a record to tblDailyItinerary that updates
the autonumber field itineraryid. I then bring up a subform which
|
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 simple database and specified what are to be the primary keys and relationships etc.
I have created the four tables and established the neccessary one to...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |