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

Linking Forms and Subforms



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2008, 10:39 PM posted to microsoft.public.access.forms
LeslieJ[_2_]
external usenet poster
 
Posts: 1
Default Linking Forms and Subforms

I have a database that inventories controlled documents. Each document has a
version, or possibly many versions.

I would like to set up a form and subform so that the document number is in
the main form, and the subform contains the version specific information.
Each document number has it's own identifier.

I cannot figure out how to link the two forms so that the multiple versions
stay attached to the document number.

  #2  
Old June 18th, 2008, 12:44 AM posted to microsoft.public.access.forms
Beetle
external usenet poster
 
Posts: 1,254
Default Linking Forms and Subforms

So you have one unique Document number, with one or many Versions
related to that Document?

If so, you need one table (ie tblDocuments) to store the Document No. plus
any general info about the document that is unaffected by the Version No.
If the Document number will always be unique and never repeated, then you
can use that as the Primary Key (ie DocumentID), otherwise you could use
an autonumber PK.

You need another table to store information about each Version
(ie tblVersions) with it's own unique PK, plus a DocumentID field
as a Foreign Key to tblDocuments.

Then you main form would be based on tblDocuments and your subform
based on tblVersions, linked by DocumentID

--
_________

Sean Bailey


"LeslieJ" wrote:

I have a database that inventories controlled documents. Each document has a
version, or possibly many versions.

I would like to set up a form and subform so that the document number is in
the main form, and the subform contains the version specific information.
Each document number has it's own identifier.

I cannot figure out how to link the two forms so that the multiple versions
stay attached to the document number.


  #3  
Old June 18th, 2008, 07:20 PM posted to microsoft.public.access.forms
LeslieJ via AccessMonster.com
external usenet poster
 
Posts: 32
Default Linking Forms and Subforms

Thank you so much! I thought that was going to be it, but thank you so much
for confirming that it was!

Have a great day )

Beetle wrote:
So you have one unique Document number, with one or many Versions
related to that Document?

If so, you need one table (ie tblDocuments) to store the Document No. plus
any general info about the document that is unaffected by the Version No.
If the Document number will always be unique and never repeated, then you
can use that as the Primary Key (ie DocumentID), otherwise you could use
an autonumber PK.

You need another table to store information about each Version
(ie tblVersions) with it's own unique PK, plus a DocumentID field
as a Foreign Key to tblDocuments.

Then you main form would be based on tblDocuments and your subform
based on tblVersions, linked by DocumentID

I have a database that inventories controlled documents. Each document has a
version, or possibly many versions.

[quoted text clipped - 5 lines]
I cannot figure out how to link the two forms so that the multiple versions
stay attached to the document number.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200806/1

 




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 09:28 AM.


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