Solved

undefined function Right in expression

Posted on 2006-07-05
4
593 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
  • 2
4 Comments
 
LVL 84

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

758 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

22 Experts available now in Live!

Get 1:1 Help Now