A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Best setup for one to one design?



 
 
Thread Tools Display Modes
  #1  
Old August 21st, 2007, 02:56 PM posted to microsoft.public.access.tablesdbdesign
Maarkr
external usenet poster
 
Posts: 240
Default Best setup for one to one design?

I would like advice on the best way to implement a one-one design. In this
example, I have one person with multiple (over 200) details about them.
Instead of using one table, I setup a table with main info, another with
medical info, another with education info, another with private info, etc.
each table has a fk to the main table primary key. Questions: Would you
just make one big table instead of splitting them up? What's the recommended
way to link the tables? If I relate the fk in the related table to the prikey
in the main, it treats it as a one-many, no matter what. I setup the forms
using a main form with subforms for each linking table but it treated it as a
one-many, even tho I didn't specify it as such. I'm going to be designing
several dbs using one-one (as well as one-many) and I need to get the linkage
right. I've seen many examples in books of one-one using the prikey of the
main and a fk of a related table...
  #2  
Old August 21st, 2007, 03:14 PM posted to microsoft.public.access.tablesdbdesign
Maarkr
external usenet poster
 
Posts: 240
Default Best setup for one to one design?

don't u love it when you figure out some of the answer for yourself? I
changed the fk in the related tables to show the index as 'no duplicates'
then changed the subform property for AllowAdditions to 'No'....any other
ideas or ways to simplify the one to ones?

"Maarkr" wrote:

I would like advice on the best way to implement a one-one design. In this
example, I have one person with multiple (over 200) details about them.
Instead of using one table, I setup a table with main info, another with
medical info, another with education info, another with private info, etc.
each table has a fk to the main table primary key. Questions: Would you
just make one big table instead of splitting them up? What's the recommended
way to link the tables? If I relate the fk in the related table to the prikey
in the main, it treats it as a one-many, no matter what. I setup the forms
using a main form with subforms for each linking table but it treated it as a
one-many, even tho I didn't specify it as such. I'm going to be designing
several dbs using one-one (as well as one-many) and I need to get the linkage
right. I've seen many examples in books of one-one using the prikey of the
main and a fk of a related table...

  #3  
Old August 21st, 2007, 03:26 PM posted to microsoft.public.access.tablesdbdesign
scubadiver
external usenet poster
 
Posts: 1,673
Default Best setup for one to one design?


Although that many fields in a table is likely to be un-normalised there are
still certain cases where you may need that many fields (as is yours!).

Instead of using foreign keys in your tables why not make them primary keys
then you will also get a one-to-one relationship?

--

The 11th day of every month:

http://truthaction.org/forum/index.php


"Maarkr" wrote:

don't u love it when you figure out some of the answer for yourself? I
changed the fk in the related tables to show the index as 'no duplicates'
then changed the subform property for AllowAdditions to 'No'....any other
ideas or ways to simplify the one to ones?

"Maarkr" wrote:

I would like advice on the best way to implement a one-one design. In this
example, I have one person with multiple (over 200) details about them.
Instead of using one table, I setup a table with main info, another with
medical info, another with education info, another with private info, etc.
each table has a fk to the main table primary key. Questions: Would you
just make one big table instead of splitting them up? What's the recommended
way to link the tables? If I relate the fk in the related table to the prikey
in the main, it treats it as a one-many, no matter what. I setup the forms
using a main form with subforms for each linking table but it treated it as a
one-many, even tho I didn't specify it as such. I'm going to be designing
several dbs using one-one (as well as one-many) and I need to get the linkage
right. I've seen many examples in books of one-one using the prikey of the
main and a fk of a related table...

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.