Solved

dBase IndexKey in VB with Accessfiles?

Posted on 1998-09-08
2
176 Views
Last Modified: 2010-05-18
I must use an indexkey like left(y,x) from a dBase indexfile. How works it on Access Files? I try to set: idx.createFields("left(y,x)"), but this can't work!
How can I use functions in access indexkeys???
0
Comment
Question by:lucyjimmy
2 Comments
 

Author Comment

by:lucyjimmy
ID: 1433591
Adjusted points to 150
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 150 total points
ID: 1433592
This will not work in Access.  It ws a provision only in Dbase systems to place a function in a key expression, but not a real good idea for performance even there!  To simulate some of the same capability, I have had to reformat my .dbf files by breaking down larger fields that are really concatenated data, into unique shorter fields in the .dbf file.  Then you can run a normal index on the component pieces, or a multicolumn index as well in Access.

You just can't use an index that contains a function in Access. You have to find some way to work around it.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

707 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

13 Experts available now in Live!

Get 1:1 Help Now