Solved

dBase problem

Posted on 1997-12-23
2
163 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

732 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