?
Solved

dBase problem

Posted on 1997-12-23
2
Medium Priority
?
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 300 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

743 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