Solved

dBase problem

Posted on 1997-12-23
2
156 Views
Last Modified: 2006-11-17
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
0
Comment
Question by:techosys
2 Comments
 
LVL 3

Expert Comment

by:Voltec
ID: 1447040
It is possible that there is a minor problem with the file itself.  Try this:

I can think of two possible solutions to this, both of which use the Data Manager:

1) Try Repairing the database. (needless to say, make a backup of the file first.)  This helped my once when one of my mdbs got a bad record,

2) Try Compacting the database to another file and then try the other file.  If this works, you can try renaming the file back or just leaving it with the new name.

I hope one of these two helps,
Voltec - A new kid on the EE block
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 100 total points
ID: 1447041
Check out the index expression.  You may have a function in the index expression itself, instead of just concatenated fields.  For an excellent set of tools to work with .dbf files and display index expressions, down load DBFLOOK from FilePile on the web.  THen be a nice guy and register it if you use it.  It's the best, most complete, and quickest set of .dbf tools out there.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now