|
To: <RPG400-L@xxxxxxxxxxxx> Sent: Thursday, February 01, 2007 8:12 AM Subject: SQL and Data Selection/Filtering
Hi, I have an inquiry/maintenance program with a 'position to' field for data selection/filtering.
If you are trying to set a 'Position To', that is different than a Filter. If the user positions to 'B' they will expect to be able to page down into the 'C's as well. Based on your sample, a position to is a lot easier to do:
Select recust#, reparent, cmcust, cmname From datalib.refile inner join datalib.cmfile on recust# = cmcust Where cmname >= :PositionTo Order by cmnameThe only down side to this would be that you would need to requery the database for page up handling.
Someone else answered the Filter problem (when the host variable is blank)....
hth,JD
As an Amazon Associate we earn from qualifying purchases.
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.