× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



To put closure on the thread, here is what I found:

exec sql declare C1 DYNAMIC SCROLL cursor for
select * from TLEH order by HID;
exec sql open C1;
exec sql fetch relative :wCount from C1 into :wRecordDS;

where wCount is the RRN number for the record desired. That positioned to the detail record I wanted and still allows me to rollup/rolldown for the next & prior detail record.

On 8/9/2016 9:26 AM, Darren Strong wrote:
... Its not ideal, but you can write the SQL statement to say where HID >=:pID.
You have to close and reopen the cursor for a change in :pID to take
affect, but the real issue is that you can't read backward to values
previous to that key on that open cursor....

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.