Hello,
I have a form and a subform. On my parent form I have a field called "IssueId" and a tab control on which I have put my subforms (on each tab a subform which are all related to the IssueId on my parent form). The field “IssueId” is a unique field, so I can’t create double records for one IssueId. Everytime I add a new record (IssueId)I get the following error message :
Run-time error “3201”
You cannot add or change a record because a related record is required in table “tblIssues”.
The problem is the record in my parent form needs to be saved first before I can add records in the subform. I've tried to put the line "docmd.runcommand accmdsaverecord" in the last field of the main form but it does flag the same error again .
I have a form and a subform. On my parent form I have a field called "IssueId" and a tab control on which I have put my subforms (on each tab a subform which are all related to the IssueId on my parent form). The field “IssueId” is a unique field, so I can’t create double records for one IssueId. Everytime I add a new record (IssueId)I get the following error message :
Run-time error “3201”
You cannot add or change a record because a related record is required in table “tblIssues”.
The problem is the record in my parent form needs to be saved first before I can add records in the subform. I've tried to put the line "docmd.runcommand accmdsaverecord" in the last field of the main form but it does flag the same error again .