JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: forcing restriction in number of records returned by a query
The SELECT TOP is the only way for MSSQL I believe, even with Access, or mySQL there's not really any other way...
Of course I think the reason is, there's no way for the SQL server to know WHAT you want to return the top of, until you specify the conditions, and/or orderby.
Jet may have supported it... but I wouldn't do it offhand though... depending on how, it would leave you open to malicious uses -- it may have been disabled... or still might work, try it and see -- although if you're executing different commands, just use the connection object's .Execute command, or other way.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|