[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

dBase problem

Posted on 1997-12-23
2
Medium Priority
?
168 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
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…
Suggested Courses
Course of the Month19 days, 6 hours left to enroll

834 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