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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form and sub-form question (newbie)



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2004, 02:35 PM
Ynot
external usenet poster
 
Posts: n/a
Default Form and sub-form question (newbie)

When you use a form and sub-form e.g. a purchase order with a vendor table,
a purchase order table, and a purchase order detail table, I know the vendor
to purchase order relationship has to be part of a query but does the
sub-form, (the detail line items), have to be part of the query also or is
the relationship established by Access because it is a sub-form of the main
form?


  #2  
Old May 7th, 2004, 02:49 PM
Roger Carlson
external usenet poster
 
Posts: n/a
Default Form and sub-form question (newbie)

Generally, the main form has the "One"-side table of a one-to-many
relationship as it's record source, while the sub-form has the "Many"-side
table as it's source. The subform control automatically inserts the primary
key value from the main form into the foreign key of each record in the
subform. This is done through the Link Parent - Link Child properties of
the sub-form control.


--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org



"Ynot" wrote in message
...
When you use a form and sub-form e.g. a purchase order with a vendor

table,
a purchase order table, and a purchase order detail table, I know the

vendor
to purchase order relationship has to be part of a query but does the
sub-form, (the detail line items), have to be part of the query also or is
the relationship established by Access because it is a sub-form of the

main
form?




 




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 02:59 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.