Hi there,
I've got a parent table (unique key ParentID), and a child table (unique key ChildID, secondary key ParentID which relates it to the parent).
I want to have a form that concentrates on the child. So I have created a form based on the child table, and then a subform based on the parent table. The subform is formatted as a single form.
What I want is for the users to be able enter (and view) details of a child, and then to either select which existing parent they belong to using some sort of drop down, and or to enter the details of a new parent along with their child. But I'm running into problems, possibly because of the approach I have taken with the form/subform etc.
If my approach is OK, the specific problem that I'm having relates to adding a record on both forms at the same time, rather than just the form the button with the code behind it is sitting in.
Thanks for any help.
Dave.
I've got a parent table (unique key ParentID), and a child table (unique key ChildID, secondary key ParentID which relates it to the parent).
I want to have a form that concentrates on the child. So I have created a form based on the child table, and then a subform based on the parent table. The subform is formatted as a single form.
What I want is for the users to be able enter (and view) details of a child, and then to either select which existing parent they belong to using some sort of drop down, and or to enter the details of a new parent along with their child. But I'm running into problems, possibly because of the approach I have taken with the form/subform etc.
If my approach is OK, the specific problem that I'm having relates to adding a record on both forms at the same time, rather than just the form the button with the code behind it is sitting in.
Thanks for any help.
Dave.