H303,
First off, this particular forum is designed to support Corel's Paradox for Windows database software. It's not meant to provide general service for Borland's Paradox file format. In general, it's best to post messages directly related to the programming tool you're working with.
Please don't misunderstand me, we're not trying to be mean. It's just that there are a lot of tools you can use to work with Paradox tables. No one can use them all, so we try to keep people organized by tools, rather than tasks.
Having said that, I don't believe Borland ever extended LocalSQL to provide a row limiting predicate for local database tables such as the ones you've mentioned.
Given that, you need to build this capability into your database tables, perhaps by queries to dermine ranges for matches, adding categorical limits, or even modifying your underlying queries to limit results based on common data elements.
Now, it's entirely possible there's a "super secret squirrel" feature that was added for this. After all, you've been able to use subqueries for INSERT, UPDATE, and DELETE queries against local (Paradox and dBASE) for some time, but that's only been documented in the last couple of revisions to LOCALSQL.HLP. However, if such a feature exists, I've not been able to find a trace of it.
Also, it's entriely possible that there's a way to connect to Paradox tables through ADO, dxExpress, or some other provider mechanism that supports row limiting predicates. I don't believe there is, however, I'll admit that I've not studied these alternatives extensively in my Delphi work. Again, this would be something better asked in the C++ Builder forum (
Sorry...
-- Lance