P.S.Bell patbell.co.uk>
2008-05-21 12:40:47 UTC
I have a local Paradox database with a master and a detail
table.
Two problems - first, I set the master datasource for the detail
table but when at runtime I try to sort it setting the
Indexfieldname property to a secondary index but then the
connection with the master detail is lost.
To get around this I used a query (sql something like select *
from detail where masterID=DetailID)
Fine - until I add 'order by secondaryfieldname' The query is
readonly.
According to the help the query becomes read only because of
"ORDER BY clauses not based on an index" - the order by field
_is_ indexed..
RequestLive is true.
To make it simpler I find even in a simple query with no 'where'
at all - adding an order by for an indexed field still makes it
read only.
Pat Bell
table.
Two problems - first, I set the master datasource for the detail
table but when at runtime I try to sort it setting the
Indexfieldname property to a secondary index but then the
connection with the master detail is lost.
To get around this I used a query (sql something like select *
from detail where masterID=DetailID)
Fine - until I add 'order by secondaryfieldname' The query is
readonly.
According to the help the query becomes read only because of
"ORDER BY clauses not based on an index" - the order by field
_is_ indexed..
RequestLive is true.
To make it simpler I find even in a simple query with no 'where'
at all - adding an order by for an indexed field still makes it
read only.
Pat Bell