Avoid multiple entry for foreign key

Alico

New member
Local time
Yesterday, 19:21
Joined
Sep 7, 2014
Messages
2
Hi All,

I have a master to child table relation which is one to many. Each one is represented by a different form.

The problem is, the user enters the primary key "JobID" on the master form, then he needs to enter a few records on the child list with the same "JobID" which is the foreign key in that case. I don't want the user to enter the "JobID" every time he enters a new record in the child form.

Is there a way I can copy the primary key to the foreign key each time the user enters a new record in the child form?

Thanks for your help & time.

Regards,
Ali
 
A subform embedded in your main form is the usual approach.
 
Link the main and sub-form together using "Link Master Fields" and "Link Child Fields", (remove the "JobID" control in the subform).
 
Look into the Link Master Fields and Link Child Fields properties of the subform control.
 
We also made it a threesome... if only Uncle T was a bit patient. ;)
 
>>> if only Uncle T was a bit patient<<<<

Yes ... I jumped the gun there didn't I!

I thought the OP was opening several different forms. In other words, a potentially nightmare situation...
 
I was actually supposed to say, "We could have made it a threesome" in reference to the timing of all three posts. :)
 

Users who are viewing this thread

Back
Top Bottom