If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Multiple tables storing additional data in an shared table?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-11, 00:53
aquaaddict aquaaddict is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
Multiple tables storing additional data in an shared table?

Hi,

I'm building an asset register database and have multiple asset tables (PCs, servers, Software, routers, etc) to store details of each item, however they all share some common fields such as supplier, date purchased, warrenty etc, so I thought it would be best to have a single table for those common fields and have each of the other tables linked to it. The relationships are one to one between each of the asset tables to the common fields table.

However how do I ensure that each of the asset tables creates a new record in the common field table and doesn't edit a record that is linked to another record in one of the other asset tables? At the moment each asset table has link its record 1 to the shared fields table record 1, and 2 and so on.

Do I have to use a create new record button on my form that create both a new record in the relevent asset table, and also goes and creates the next available record in the shared field table?

There is a PK in the shared fields table that is linked to a number field in each of the asset tables.

Thanks Anthony
Reply With Quote
  #2 (permalink)  
Old 07-29-11, 02:49
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
This denotes a flawed conception of how you should organize the data. There a rules (called the Normal Forms) that precisely expose how data should be organized in a relational database. see (among many others):
Database Tutorial
A Simple Guide to Five Normal Forms in Relational Database Theory
3 Normal Forms Database Tutorial
Normalizing Your Database: First Normal Form (1NF)
First Normal Form (1NF) - Normalising Your Database | Database Solutions for Microsoft Access | databasedev.co.uk
__________________
Have a nice day!
Reply With Quote
  #3 (permalink)  
Old 07-29-11, 04:29
eremija eremija is offline
Registered User
 
Join Date: Nov 2010
Posts: 61
In addition to what you said @Sinndho colleagues, I think your solution is the base model in the application of generalization and specialization.
http://penghuang.com/mgt4058/chap04....Business Rules
__________________
skype: zoran.eremija
www.it4you.com.au
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On