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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"You Can't Assign Value to this Object" error on subform

Status
Not open for further replies.

MAINOH

Technical User
Jul 7, 2006
24
US
I get same error message as thread702-1161841 when I try to enter a new record in a sub-form.

main form data source is tblSDCFSUMMARY with Key field of INVNUM.

Sub-form data source is tblSDCFDETAIL with key field of ID.


There is a 1 to many relationship between tblsSDCFSUMMARY and tblSDCFDETAIL, based on the INVNUM.

Enforce Referential Integrity and cascade Update related fields are checked in the relationships.

I beleive the issue is that when I try to create a new record in the subform - the INVNUM field is not populated in the new record.

Any help in how to automatically populate this field in the source table for the sub-field based on the field in the main form is greatly appreciated. I would want it to populate as soon as a new record is begun in sub-form (no matter what field is 1st to have data entered into it).

Or if you believe there is another issue please let me know.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top