Solved

undefined function Right in expression

Posted on 2006-07-05
4
635 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 500 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

Technology Partners: 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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

688 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