I have a parent Inventory Record that can have a child record in one of the following Child Files: Truck, Stock, Trailer, etc. The Inventory record has an Inv:InvClass that determines which of the files to use. I have no problem doing Updates. I simply do an update of the proper child file, based on the Inv:InvClass.
I am having major trouble trying to do Inserts. I finally broke the process apart so that I call an Insert form from the Menu (its only purpose is to Insert the parent record). It inserts the Inventory record as it should. I was hoping to be able to Create the corresponding child record, based on the Inv:InvClass. I have not been able to do this.
The files are related by
Truck:InvMachineID = Inv:InvMachineId AND
Truck:Inv:InvId = Inv:InvId
I prime the Child File accordingly and try Access:Truck.Insert -- but no joy.
This should work, correct? What embed should I use? Sorry for all the questions.
Thank you.