Index and sorting question, help! :) 
Author Message
 Index and sorting question, help! :)

Hi,

I am working on an application that utilizes (at least) two tables. One
has 6,300 records, the other 60,000.  I want to associate records from
table to the other.  I know I can do this with a link table.  The problem
is that I mist be able to search quickly through this third tabe since it
will be the largest by far.  I was going to sort the entries by the number
from the smaller table, but somehow I wonder if an idex would be better.
The hitch is that there is nothing in my manuals or the on-line help that
explains how to use indexes.

Would someone point me in the right direction here?  I don't expect you to
explain this all to me, so if you can recommend a book, that would be
fine.

Thanks in advance.

 -- b



Sat, 27 Nov 1999 03:00:00 GMT  
 Index and sorting question, help! :)

Quote:

> Hi,

> I am working on an application that utilizes (at least) two tables. One
> has 6,300 records, the other 60,000.  I want to associate records from
> table to the other.  I know I can do this with a link table.  The problem
> is that I mist be able to search quickly through this third tabe since it
> will be the largest by far.  I was going to sort the entries by the number
> from the smaller table, but somehow I wonder if an idex would be better.
> The hitch is that there is nothing in my manuals or the on-line help that
> explains how to use indexes.

> Would someone point me in the right direction here?  I don't expect you to
> explain this all to me, so if you can recommend a book, that would be
> fine.

To use indexes you need to have your recordset as a table object.  In
your code assign the index I.E.
data1.index="Indexed Field"
That's all you need to use them.

You can create indexes through code but just cheat an open Access and
define them there (unless you need dynamic indexes).



Sat, 27 Nov 1999 03:00:00 GMT  
 Index and sorting question, help! :)


Quote:
>I am working on an application that utilizes (at least) two tables. One
>has 6,300 records, the other 60,000.  I want to associate records from
>table to the other.  I know I can do this with a link table.  The problem
>is that I mist be able to search quickly through this third tabe since it
>will be the largest by far.  I was going to sort the entries by the number
>from the smaller table, but somehow I wonder if an idex would be better.
>The hitch is that there is nothing in my manuals or the on-line help that
>explains how to use indexes.

>Would someone point me in the right direction here?  I don't expect you to
>explain this all to me, so if you can recommend a book, that would be
>fine.

I would recommend a course in relational database theory...


Sun, 28 Nov 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help VB6 / Access database, how to change index sort order in runtime

2. Request for help - limitation of 32 indexes including foreign indexes

3. Using indexes and sorting.

4. Index with non alphabetical sorting

5. VB6: ADO - Sorting/Indexing?

6. Different Indexes for Sorting DB's

7. Unwanted sorting of dynaset on table index

8. How to use Foxpro 2.5b Index file for sorting

9. ListView Item Index after manual sort

10. How to index or sort data in a file

11. How to sort/index records?

12. Looking for an algorithm for building an index-array for sorting an array or database table

 

 
Powered by phpBB® Forum Software