PC Review


Reply
Thread Tools Rate Thread

TOP 5 in access db

 
 
Brian Henry
Guest
Posts: n/a
 
      30th Sep 2003
how do you get the TOP clause to work in ADO.NET? I have tried this SELECT
TOP 1 NOTE FROM NOTES and that works, but soon as i raise the number past 1
it gives me the entire table back! I want the top 5 records not all of them,
how do you get this to work in ado.net with an access db.. thanks!


 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      2nd Oct 2003
On Tue, 30 Sep 2003 14:28:43 -0400, "Brian Henry" <(E-Mail Removed)> wrote:

¤ how do you get the TOP clause to work in ADO.NET? I have tried this SELECT
¤ TOP 1 NOTE FROM NOTES and that works, but soon as i raise the number past 1
¤ it gives me the entire table back! I want the top 5 records not all of them,
¤ how do you get this to work in ado.net with an access db.. thanks!
¤

I can't repro this behavior. Are you using the Jet OLEDB provider?


Paul ~~~ (E-Mail Removed)
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lap top won't boot past empty desk top Randy Windows XP General 1 1st Mar 2005 09:52 AM
how to paste data from top to bottom to bottom to top =?Utf-8?B?RmF6ZWVs?= Microsoft Excel Misc 1 25th Jan 2005 01:12 AM
transfer contacts from my lap top to desk top =?Utf-8?B?SW5nbw==?= Microsoft Access 1 4th Oct 2004 10:35 AM
how do I synchronise outlook on my lap top with my desk top? =?Utf-8?B?TWlrZSBU?= Microsoft Outlook Discussion 1 5th Sep 2004 07:09 PM
how do i uninstall windows xp that has been installed on top of top of another mrbigguy1@msn.com Windows XP General 3 20th Feb 2004 03:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:00 AM.