Relating subform data to main form (1 Viewer)

C

cjolma

Guest
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

Registered User.
Local time
Today, 11:20
Joined
Mar 23, 2001
Messages
292
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

Ready to Help
Local time
Today, 16:20
Joined
Apr 11, 2001
Messages
167
cjolma!

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

Hope this helps...

Paul
 

Users who are viewing this thread

Top Bottom