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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |