Link to home
Start Free TrialLog in
Avatar of barnett100
barnett100

asked on

'You cannot assign a value to this object'

Hello. I get the above message when I try to enter data into a sub form. The main form 'Referral' is based on a table with the same name and the subform 'youngperson' is also based on a table with that name. the relationship of young person to referral is one to many.If i enter some data into the referral table first and then try to enter data into the subform , i get the message 'you cannot add or change ....because a related record is required in young person'
What am I doing wrong ?
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of barnett100
barnett100

ASKER

Thanks. Im sure you are right. I thought that in a one to many relationship the pk of the one ended up as the fk of the many., thus creating the link. Ive obviously got a bit mixed upi and will try reorganising my relationships. Thanks
It does ... if your Referrals is the "one" and the YoungPerson is the "Many", you'd store the value of Referrals.IDField in YoungPerson.YourForeignKeyField