Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 3039: Couldn't create index

Status
Not open for further replies.

AngelaD

Programmer
Apr 10, 2002
8
GB
I am accessing a FoxPro Free Table from Access by linking to it using ODBC. In order to be able to update the FoxPro table, I need to define a unique index on the FoxPro table when I link to it.

When I do this using File/Get External Data/Link Tables it works OK.

However, I am having trouble coding it in VBA. I create the index and append it to the tabledef, however, when I append the tabledef I get Error 3039 "Couldn't create index; too many indexes already defined".

Is this because I cannot define and index on a linked table? If this is so, why is it possible to do the same operation using File/Get External Data/Link tables with no problem? How do I get round this?

Thanks, in anticipation,

Angela

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top