View Full Version : Relating subform data to main form


cjolma
06-18-2001, 06:03 AM
My relationships are set nicely with the tables, and I have some subforms built off of them. However, when I try to enter data in the subform, it tells me I need a corresponding record in the parent form. I understand the logic behind this, but I've GOT existing data in the main table/form. My question: Is there another method of linking forms? How does a main form "know" that the data being entered is related to it?
Thanks,
cjolma

AlanS
06-18-2001, 06:06 AM
You must set the LinkChildFields and LinkMasterFields properties of the subform control (not the subform itself, but the control on the main form into which you have inserted the subform).

paulmcdonnell
06-18-2001, 09:17 AM
cjolma!

Switch on the Tools Wizard when you insert the subform this will guide you through the linking process

Hope this helps...

Paul