I have Office 2019 on Windows 10. I am pretty much an Access newbie. I have some VBA for some combo boxes, but copied from others - I don't know VBA.
I have an Access DB with a table for books: tblWork. WorkID is the auto primary key and Title is a required field. There are a bunch of other fields. I have created a form with only tblWork fields - FRM-Work-only. This works perfectly fine. However, I want a form that can be used to enter a new work plus a bunch of other related info from other tables. So I created a form FRM-WorkPlus. In the header of this main form I have only WorkID and Title, and a lookup box to find records. But since there is a lot of stuff I want to include and it won't fit on one screen, I have created a tab control and plan to put subforms into the tabs. For the first one, I have put a copy of FRM-Work-only as a subform. This is almost unchanged, except for some row source info in the cascading combo boxes that are in the form, and the form name. So the properties for the Title text box are the same as in FRM-Work-only, which includes Enabled=Yes and Locked=No.
The subform works fine when displaying existing records. However, if I try to enter a new record on the main form I have trouble. I can't enter data on the main form because there are other required fields in tblWork. So I go straight to the Title box on the subform. After typing the first character I get the "You can't assign a value to this object" error. If I click ok, it lets me continue to fill in the fields in the subform. However, for one thing, the Title field in the main form remains blank. After entering data, if I go to the first record, then back to the last record, the new record is not there. But when I close the form and look in tblWork, the new record is in fact there.
How can I avoid the error and have my main/subform accurately reflect newly added records? Thanks.