Hi,
I've got a database I wrote a little while ago which has customer details in the main form, and details of all their orders in the sub-form. This works perfectly, and allows me to add orders into the sub-form. The two forms are linked through the customer's ID number which is included in the sub-form.
I believe the linking was done automatically through the wizard when I initially created the form.
I now have a problem in a separate database where I want to do exactly the same thing, but can't get the wizard to give me the option of a sub-form, and when I try to insert it myself, I get the following error message whenever I try to add new info to the sub-form:
"The LinkMasterFields property setting has produced this error: 'The object doesn't contain the Automation object 'tblSoftware.'"
(Both the main and subforms are fundamentally built on tblSoftware).
I've indicated which fields are common between the main form and the subform (in the wizard which appears when you create a sub-form), and the correct information is displaying in the sub-form as you cycle through the main form, so that's all good. But it won't allow me to add new entries. The last row in the sub-form allows you to type information, but doesn't automatically populate the field which links the sub-form to the main form, whereas my other database does this automatically.
Firstly, what criteria do the wizards look for in determining whether or not to offer the option of creating a sub-form? Ideally I would like to do it this way.
Secondly, if the above isn't obvious, how do I go about solving this error message?
Any help greatly appreciated!
I've got a database I wrote a little while ago which has customer details in the main form, and details of all their orders in the sub-form. This works perfectly, and allows me to add orders into the sub-form. The two forms are linked through the customer's ID number which is included in the sub-form.
I believe the linking was done automatically through the wizard when I initially created the form.
I now have a problem in a separate database where I want to do exactly the same thing, but can't get the wizard to give me the option of a sub-form, and when I try to insert it myself, I get the following error message whenever I try to add new info to the sub-form:
"The LinkMasterFields property setting has produced this error: 'The object doesn't contain the Automation object 'tblSoftware.'"
(Both the main and subforms are fundamentally built on tblSoftware).
I've indicated which fields are common between the main form and the subform (in the wizard which appears when you create a sub-form), and the correct information is displaying in the sub-form as you cycle through the main form, so that's all good. But it won't allow me to add new entries. The last row in the sub-form allows you to type information, but doesn't automatically populate the field which links the sub-form to the main form, whereas my other database does this automatically.
Firstly, what criteria do the wizards look for in determining whether or not to offer the option of creating a sub-form? Ideally I would like to do it this way.
Secondly, if the above isn't obvious, how do I go about solving this error message?
Any help greatly appreciated!