LOCAL lcCompany, hConn, lnResult hConn = SQLCONNECT(...) lnResult = SQLEXEC(hConn, ; [SELECT TOP 10 company FROM customer WHERE company > ?lcCompany ORDER BY company], 'c_companylist')This will return the next 10 rows that are after whatever company is stored within the lcCompany variable. BTW, to get the previous 10, change the > to a < and change the ORDER BY to DESC instead of ASC (the default).