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  

Relationships One to Many



 
 
Thread Tools Display Modes
  #1  
Old February 4th, 2005, 03:31 AM
Vadimbar
external usenet poster
 
Posts: n/a
Default Relationships One to Many

I have read articles upon articles on relationships. Just when I think I got
it I cant create more then 1 record. I know this doesn't make a lot of sence.
In an effort to sound a little more coherent I will rephrase my question:
I have a table with many fields(TableA) I need to add comments to (tableA)
but I do not know how many times I will need to go back to (tableA).
Example (TableA) has three records and record 2 needs to have 12 comments
added to it. I create another table (Comments). How do I link these? How do I
get the multiple comments for TableA to stay together?
Thank you,
Vadimbar
Ads
  #2  
Old February 4th, 2005, 04:10 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

TableA should have a primary key, let's assume an autonumber field named
"ID". You would add a Long Integer field ("AID") to the Comments table. Then
you can create a form ("frmA") based on TableA. Add a subform to frmA that
has a record source of the Comments table. Set the subform's properties:
Link Child: [AID]
Link Master: [ID]

This will make sure that new records added to the comments subform will
"inherit" the ID value from the main form.

--
Duane Hookom
MS Access MVP
--

"Vadimbar" wrote in message
...
I have read articles upon articles on relationships. Just when I think I
got
it I cant create more then 1 record. I know this doesn't make a lot of
sence.
In an effort to sound a little more coherent I will rephrase my question:
I have a table with many fields(TableA) I need to add comments to (tableA)
but I do not know how many times I will need to go back to (tableA).
Example (TableA) has three records and record 2 needs to have 12 comments
added to it. I create another table (Comments). How do I link these? How
do I
get the multiple comments for TableA to stay together?
Thank you,
Vadimbar



  #3  
Old February 11th, 2005, 05:33 PM
Vadimbar
external usenet poster
 
Posts: n/a
Default

Thank you I will give it a try.
Vadimbar...

"Duane Hookom" wrote:

TableA should have a primary key, let's assume an autonumber field named
"ID". You would add a Long Integer field ("AID") to the Comments table. Then
you can create a form ("frmA") based on TableA. Add a subform to frmA that
has a record source of the Comments table. Set the subform's properties:
Link Child: [AID]
Link Master: [ID]

This will make sure that new records added to the comments subform will
"inherit" the ID value from the main form.

--
Duane Hookom
MS Access MVP
--

"Vadimbar" wrote in message
...
I have read articles upon articles on relationships. Just when I think I
got
it I cant create more then 1 record. I know this doesn't make a lot of
sence.
In an effort to sound a little more coherent I will rephrase my question:
I have a table with many fields(TableA) I need to add comments to (tableA)
but I do not know how many times I will need to go back to (tableA).
Example (TableA) has three records and record 2 needs to have 12 comments
added to it. I create another table (Comments). How do I link these? How
do I
get the multiple comments for TableA to stay together?
Thank you,
Vadimbar




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mixed up with Relationships..help! KrazyRed New Users 3 January 26th, 2005 06:03 AM
Deleting Relationships... Kojones General Discussion 3 December 18th, 2004 12:46 AM
Relationships getting redefined? raylitalo General Discussion 3 December 15th, 2004 09:31 PM
Disappearing relationships Dan Database Design 2 August 6th, 2004 06:43 AM
Not seeing all relationships in layout window jettabug General Discussion 3 June 18th, 2004 05:42 PM


All times are GMT +1. The time now is 12:21 PM.


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