Hello Claudemir
First you should Insert / Post a master record, then a detail record. Otherwise DB.pas will try to post a detail record, which does not have a corresponding master record. And exception is raised.
↧