I am currently trying to chang the index at run time using the following example (myindex.index = newindex) using VB4-16 with DAO 2.5. This same code works fine in two other DBF files but in this one DBF I keep getting a "Newindex is not an index in this file". I have check the spelling and have opened the DBF file to see if there is an index and there is. Lastly when I open my project in VB4-32 this problem goes away and i have no problems.
Thank you David Pesenti