Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save to multiple tables with master detail link.

Status
Not open for further replies.

Gita21

Programmer
Nov 17, 2002
11
0
0
NZ
How to save to multiple tables with master detail link.
That is, how to save the master table first then the detail tabes.
For example, there is a order table and a orderItem table.
When save button is clicked. It must save to Order table first then to
orderItem table.



dataModule11.getQueryOrder().post();
dataModule11.getQueryOrderItem().post();
DataSet[] tosave = {dataModule11.getOrder(), dataModule11.getQueryOrderItem()};
dataModule11.getAILEDatabase().saveChanges(tosave);

But it gives error message saying a record does not exsist in Order Table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top