We make use of standard TQuery components. Both the master and detail TQuerys (as part of linked master/detail queries) have the 'RequestLive' property set to True to allow editing/updating of the data entries as seen.
For instance the SQL of the master TQuery is 'SELECT * FROM PORDHEAD ORDER BY PORDNO' and the detail TQuery has SQL 'SELECT * FROM PORDLINE WHERE PORDNO =ORDNO'.
This should allow us to scroll through the master TQuery and see the detail TQuery follow suit (such that we see the appropriate lines for the indicated header).
However on occasions we have seen this link fail.
If the SQL for the master is changed to include a WHERE clause, for instance 'SELECT * FROM PORDHEAD WHERE PORDNO =ORDNO' then the detail TQuery does not seem to follow suit, that is we might close the detail, close the master and then pass it an appropriate parameter (i.e. a purchase number of 10) and then open the master and then open the detail, the detail TQuery still seems to contain the records of the previous master record.
Is this a broken link or should we not be making use of master/detail TQuerys with the 'RequestLive' property set to True ?
Anyone have any thoughts on this ?
Thanks in advance.
Steve
For instance the SQL of the master TQuery is 'SELECT * FROM PORDHEAD ORDER BY PORDNO' and the detail TQuery has SQL 'SELECT * FROM PORDLINE WHERE PORDNO =ORDNO'.
This should allow us to scroll through the master TQuery and see the detail TQuery follow suit (such that we see the appropriate lines for the indicated header).
However on occasions we have seen this link fail.
If the SQL for the master is changed to include a WHERE clause, for instance 'SELECT * FROM PORDHEAD WHERE PORDNO =ORDNO' then the detail TQuery does not seem to follow suit, that is we might close the detail, close the master and then pass it an appropriate parameter (i.e. a purchase number of 10) and then open the master and then open the detail, the detail TQuery still seems to contain the records of the previous master record.
Is this a broken link or should we not be making use of master/detail TQuerys with the 'RequestLive' property set to True ?
Anyone have any thoughts on this ?
Thanks in advance.
Steve