Solved

dBase IndexKey in VB with Accessfiles?

Posted on 1998-09-08
2
182 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
[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
 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

691 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