In SQL it’s “not done” to scroll to the last record in the table, since tables can hold up to millions of records.
The SQL way is: sorting or searching
Paul
I take your point Paul - and well made. However ( , supposing I REALLY want to gpo to the last record - what’s the most elegant way of showing that record?
This topic has been discussed before on this form. Try searching on “last record”.
paul
Again thanks for your feedback Paul - but, that thread doesn’t really address the issue.
It should be very easy to simply select the index of the last record in the table - so why doesn’t this work
var nrRecords = databaseManager.getTableCount(foundset);
currentcontroller.setSelectedIndex(nrRecords);
or this
var nrRecords = currentcontroller.getMaxRecordIndex()
currentcontroller.setSelectedIndex(nrRecords);
There must surely be an easy way to get past the 200 record partial foundset limit and request the record at the last index - without the expense of looping through the entire recordset?