Solved

Left Function is not available in expressions in query expression (Access 2000)

Posted on 2002-06-24
11
2,163 Views
Last Modified: 2008-02-26
This is recently occuring in some offsite computers using a variety of operating systems (95, 98, 2000, and possibly XP).

The Access 2000 database contains a query that uses the Left() function and recieving the error:

"Function is not available in expressions in query expression 'Left(.." etc.

From the information I have gathered about this problem so far, I believe from what I read, please someone correct me if I am wrong.. that.. the development computer is using an earlier version of the .dll that contains the Left() function while the user computers off-site have gotten ahold of a newer version of this same .dll.

I have not been able to locate which .dll file contains the function Left(). Does anyone know which .dll it is? Maybe I can get a good start from there of how to tackle this problem and work from there.

I have found an article and a solution that involved refreshing the references. This will not work in this instance due to the non-dev databases being .mde.

Thank you for any possible help,

Paul
0
Comment
Question by:Alder
[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
  • 3
  • 2
  • 2
  • +3
11 Comments
 
LVL 54

Expert Comment

by:nico5038
ID: 7105631
Normally this points to missing references.
Open a module and select Tools/References
When you see a checked library starting with "MISSING" then uncheck this one and (when necessary) replace with another version.

Nic;o)
0
 
LVL 1

Expert Comment

by:jriggin
ID: 7105672
The 'left' function is in VBE6.DLL (Usually C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL) - I have version 6.0.89.67 w/ Access 2000

For '97, it is in  C:\Program Files\Common Files\Microsoft Shared\VBA\VBA332.DLL.  I have 3.0.0.7019 for Access 97.
0
 
LVL 6

Expert Comment

by:Mach1pro
ID: 7106025
The dll that contains the functions don't have to be the ones missing to come up with the error.  I recently added a runtime app to a Win2000 PC and the file that was missing causing the Left function not to work was  VBEEXT1.ole.
I've also run into situations where a different version of the CommonDialogue file on a PC would generate DateFunction errors.  The best bet is to to look at the references that are on the PC that is working and then make sure that the same references exist and are registered on the PC that isn't working.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 58
ID: 7106857
Paul,

<<I have found an article and a solution that involved refreshing the references. This will not work in this instance due to the non-dev databases being .mde.>>

That's one of the big headaches with MDEs; you can't fix broken references.

You need to ensure that all .DLLs are the same as those on the development machine and appear some where in the path.  Many times references break simply because a DLL is in a different location or is a different version.

One way around this is to ensure that your development machine and those that you distributing to are up to the same rev levels or better yet, distribute a setup package rather then passing around just a copy of the MDE.

Jim.
0
 
LVL 1

Expert Comment

by:jriggin
ID: 7111164
Jim is right about useing a setup package, but you need the development kit to make those.  The last time I used them was with '95, and they only did a correct install on about 80% of the machines. Maybe they improved it.

But, the dlls do not need be in the same path on the target machine.  If the dll is registered on the client, its location does not matter - it will be pointed to the right location by the registry entry.

You can check your dependancies with depends.exe which you can get from http://www.microsoft.com/msj/defaultframe.asp?page=/msj/code/depends.htm&nav=/msj/code/newnav.htm

This will tell you what is missing on the client machine.
0
 

Author Comment

by:Alder
ID: 7113929
Found what was causing the problem. Microsoft DataGrid Control 6.0 had been added to the references by accident and the control's file had not been distributed to the offsite computers. Somehow this reference without a file to reference caused the problem with the Left() function when used within a query.
0
 
LVL 58
ID: 7113981
Good work!
Jim.
0
 

Author Comment

by:Alder
ID: 7114118
All comments have been very helpful for me to get to the root of the problem. I do not know which comment to select as the answer.
0
 
LVL 58
ID: 7114376
I don't think any. You pretty much figured it out on your own.

If you feel anyone was somewhat helpfull, how about deleting this question and posting a 50 point "thank you" type questions.

Jim.



0
 
LVL 54

Expert Comment

by:nico5038
ID: 7254142

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7270079
Per recommendation, points refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

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