Board index » delphi » Master Detail and Master Inserts
Reinhard Kalinke
![]() Delphi Developer |
Tue, 02 Mar 2004 23:42:51 GMT
Master Detail and Master Inserts
Two ADOQuerys linked via DataSource property. The detail one is used to look
up values from the master (uh-oh). One field to do the link. Everything works fine when scrolling, even when editing the field in question in the master table. As soon as the underlying TField updates its data the change is reflected in the detail query (the record does not need to be posted!). However when doing an insert in the master table this does not work. Doing a bit of stepping in ADODB I could see no essential difference from the way it works when editing. All the same calls with apparently all the same values. The parameter has the correct value immidiately before the Requery is done. However, the row returned then has all empty field values. Of course, when coding parameters explicitely, everything works. Is there anyone with some more insight into this or even with an explanation for this behaviour? |