If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Recordset not sorting using the primary key

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-04-03, 11:08
Towquest Towquest is offline
Registered User
 
Join Date: Mar 2003
Posts: 4
Red face Recordset not sorting using the primary key

Hi all.

I'm using Microsoft.Jet.OLEDB.4.0 & ADO recordsets to manipulate and query an Access database but when I populate the recordset with a simple "SELECT * FROM tableName" the records are in no particular order. ADO seems to be ignoring the Primary key on the tables in Access

1. Can anybody tell me why the Index (key) is ignored?
2. How can I remedy this?
3. I know I can use "ORDER BY" to rearrange the records but surely that is extra work for the CPU and will degrade performance?
Reply With Quote
  #2 (permalink)  
Old 04-04-03, 11:09
Towquest Towquest is offline
Registered User
 
Join Date: Mar 2003
Posts: 4
Wink

DOH!
Forgot to mention that I'm doing this through Visual basic.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On