?
Solved

undefined function Right in expression

Posted on 2006-07-05
4
Medium Priority
?
640 Views
Last Modified: 2008-03-03
A very simple query in a database is working perfectly on any computer I have exept on 2.

There I get the message

Undefined Function 'Right' in Expression

I looked for the visual basic editaotr references.

Visual Basic for applications is the first. it is checked and I can not uncheck it as functions of it are used in the database code.

When I cloese the database, of course I can not access the references any more.

I copied the files needed from a working computer to the problem computer, I disinstalled VBA and access and installed it again. Nothing helps.

So what is next?
0
Comment
Question by:vspruytte
[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
4 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 1500 total points
ID: 17046733
No, you cannot uncheck the VBA reference. You should have several references already checked in your database (VBA is one, as well ADO and/or DAO).

Merely copying the files over may not help. YOu must make sure that your target machine has the same reference libraries, files, ActiveX controls etc as are used on your development machine.

Can you list the references from a "working" computer?
0
 
LVL 5

Expert Comment

by:BPeb
ID: 17046864
The error message may be misleading.  Try going into the VBA editor and compiling the code to see if anything is broken.  This often causes the most basic things to not work.  

If that doesn't find the problem please list the references you have marked since that's the only other possible answer to your problem.
0
 

Author Comment

by:vspruytte
ID: 17047018
the checked references in a working computer or on the computers with the problem are exactly the same
0
 

Author Comment

by:vspruytte
ID: 17047028
the checked refernces are the same. as the files have been copied, they are the same. as I can not uncheck and recheck the VBA, how can I correct the links if they are not correct (what I can not see because the referecne is too long to be seen completely)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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.
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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Suggested Courses

765 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