BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can ADO to Access DB use a multi-column index with D7?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Khari Villela
Guest





PostPosted: Fri Jan 14, 2005 8:23 pm    Post subject: Can ADO to Access DB use a multi-column index with D7? Reply with quote



cross post from delphi.database.desktop...



Im trying to use a multi-column index with access and Im having a heck of
a time convincing D7 and ADO to use it.

Here's my scenario

Master table
master_id

Detail Table
master_id
date

I have a master/detail relatationship set up between these tables. I would
LIKE the detail table to be displayed in reverse date order (newest dates
first).

I have setup the table in access to have an index called "activeIndex" on
master_id;date with date descending. When I try to use this in the
TADOTable component indexName column,
it says indexName "activeIndex" is not found. If I put just date as the
indexFields property, then I get a type mismatch (presumably because I
dont have master_id in there). If I
put master_id;date in the indexFields, then it works and runs fine, but
the table is sorted in ascending order. I have even tried putting a
Descending index on the date column -
no luck.

So, can this be done - if so what are the database settings and component
properties required to do this.

thanks

khariV
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.