Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parent / Child Forms

Status
Not open for further replies.

CTO1

Technical User
Jun 17, 2003
14
0
0
GB
I have a parent / child relationship expressed as 2 forms but not subforms.
I want the foreign key of the child form (primary key on parent form) to automatically be entered when I insert a new record into the child form.
After scanning through FAQ's etc I have set the Form's Event Load Procedure to
=[ForeignKey]=[Forms]![ParentForm]![PrimaryKey]
I have also tried this on the Before Insert Event Procedure.

However neither seem to automatically simulate the Link Child / Master fields as in a subform.

Yours desparately
 
Could you try and set the default value of the form field to '=[ForeignKey]=[Forms]![ParentForm]![PrimaryKey]' ?

I know it may be the same thing as EventLoad, but it's worth a shot!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top