set index on linked dbf

R

Randal

Access is linked to a very large dBase IV file - too large to import. Is
there a way to set an index on this linked table to speed up queries?
 
J

Joe Fallon

Not sure if this will actually help speed things up but....

You can create a "Fake" index in Access that tells Access which columns make
a Unique record in the linked table. The index is only used by Access is
completely unknown to the Server.

The following example creates an index on an ODBC linked table. The table's
remote database is unaware of and unaffected by the new index. The following
example won't work if you simply paste it into Microsoft Access; you first
need to create an ODBC linked table called OrderDetailsODBC.

(CREATE INDEX Statement in Help has some examples)

CREATE UNIQUE INDEX OrderID ON OrderDetailsODBC (OrderID);
 
R

Randal

Thanks!

This works great on 2 of the tables because they have a field that works as
the primary key. For my third table there is not a field or set of fields
that are unique. Do you know if there are switches to create "Indexed - Yes
(Duplicates OK)" which I could apply to the foreign key?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top