Michaelniz
Registered User.
- Local time
- Today, 15:21
- Joined
- Feb 6, 2009
- Messages
- 10
Hello,
I have two tables that are linked in a one to many relationship:
tblContractHeader (One)
tblRatePlans (Many)
These two tables are linked via ContractID which is set to Autnumber in the tblContractHeader table and Number in the tblRatePlans.
I have a form set up to populate the tblcontractheader table and then a command button on that form that opens up a form to populate the tblRatePlans table. When I open the form and populate a record in the tblcontractheader table and then click the command button to open the form to populate tblRatePlans I get the following message when I try and populate a record in the tblRatePlans table.
"You cannot add or change a record because a related record is required in table <name>. (Error 3201)"
What I am doing wrong and how do I fix this?
Thanks
Mike
I have two tables that are linked in a one to many relationship:
tblContractHeader (One)
tblRatePlans (Many)
These two tables are linked via ContractID which is set to Autnumber in the tblContractHeader table and Number in the tblRatePlans.
I have a form set up to populate the tblcontractheader table and then a command button on that form that opens up a form to populate the tblRatePlans table. When I open the form and populate a record in the tblcontractheader table and then click the command button to open the form to populate tblRatePlans I get the following message when I try and populate a record in the tblRatePlans table.
"You cannot add or change a record because a related record is required in table <name>. (Error 3201)"
What I am doing wrong and how do I fix this?
Thanks
Mike