Link to home
Start Free TrialLog in
Avatar of vspruytte
vspruytte

asked on

undefined function Right in expression

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?
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of vspruytte
vspruytte

ASKER

the checked references in a working computer or on the computers with the problem are exactly the same
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)