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  

Child/Master fields



 
 
Thread Tools Display Modes
  #1  
Old June 24th, 2004, 10:38 PM
DA
external usenet poster
 
Posts: n/a
Default Child/Master fields

My database for tracking Confidentiality agreements
consists of a table for Company Information and a table
for Agreement details with the relationship based on
CompanyName. I have a form that has the Company
information and a subform with some of the agreement
details (NDA_ID,ExpDate,Requestor,etc). What I would like
to do is be able to insert another subform to display the
rest of the agreement details for the record currently
selected in the first subform. The first subform is in
continuous- datasheet view. The second subform has Link
Master Fields set to:[frmSubform1].Form![NDA_ID] and Link
Child Fields to NDA_ID but it only displays details about
the first record in Subform1. What am I doing wrong? Help
please!
  #2  
Old June 25th, 2004, 10:37 AM
Reggie
external usenet poster
 
Posts: n/a
Default Child/Master fields

DA, You need to reference your subform1 through your main form

Link Master Field:
Forms![frmYourMainForm]![frmSubform1].Form![NDA_ID]

Then set the On Current event of subform1 to something like


Private Sub Form_Current()
Forms!frmYourMainForm!frmSubform2.Requery
End Sub

Hope it helps!

--
Reggie

----------
"DA" wrote in message
...
My database for tracking Confidentiality agreements
consists of a table for Company Information and a table
for Agreement details with the relationship based on
CompanyName. I have a form that has the Company
information and a subform with some of the agreement
details (NDA_ID,ExpDate,Requestor,etc). What I would like
to do is be able to insert another subform to display the
rest of the agreement details for the record currently
selected in the first subform. The first subform is in
continuous- datasheet view. The second subform has Link
Master Fields set to:[frmSubform1].Form![NDA_ID] and Link
Child Fields to NDA_ID but it only displays details about
the first record in Subform1. What am I doing wrong? Help
please!



  #3  
Old June 25th, 2004, 03:55 PM
DA
external usenet poster
 
Posts: n/a
Default Child/Master fields

Thanks for pointing me in the right direction.

-----Original Message-----
DA, You need to reference your subform1 through your main

form

Link Master Field:
Forms![frmYourMainForm]![frmSubform1].Form![NDA_ID]

Then set the On Current event of subform1 to something

like


Private Sub Form_Current()
Forms!frmYourMainForm!frmSubform2.Requery
End Sub

Hope it helps!

--
Reggie

----------
"DA" wrote in

message
...
My database for tracking Confidentiality agreements
consists of a table for Company Information and a table
for Agreement details with the relationship based on
CompanyName. I have a form that has the Company
information and a subform with some of the agreement
details (NDA_ID,ExpDate,Requestor,etc). What I would

like
to do is be able to insert another subform to display

the
rest of the agreement details for the record currently
selected in the first subform. The first subform is in
continuous- datasheet view. The second subform has Link
Master Fields set to:[frmSubform1].Form![NDA_ID] and

Link
Child Fields to NDA_ID but it only displays details

about
the first record in Subform1. What am I doing wrong?

Help
please!



.

 




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
UNION Query truncating Memo fields Matthew DeAngelis Running & Setting Up Queries 4 June 10th, 2004 02:17 PM
How to store calculated fields ? Nico Using Forms 13 June 7th, 2004 02:57 PM
Lost text fields in merge CGiannini General Discussion 5 June 4th, 2004 10:23 PM
Lookup fields on label report Howard Setting Up & Running Reports 1 June 3rd, 2004 02:43 AM
Calculating fields for Access Galin New Users 6 May 5th, 2004 12:05 AM


All times are GMT +1. The time now is 05:27 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.