Add-ins Access 2000 on new Desktop/Lapttop

E

Ernie

I copied an old Database (from a PC on Windows Millenium) onto a new Laptop
and desktop, both running on XP.
When clicking on a 'Command Button' with underlying Macro, I get the error
message "Undefined function 'left$' in expression'.
Basically, none of my macros work, I remember something about add-ins
missing - who can help?
 
D

Douglas J. Steele

Open any code module, then select Tools | References from the menu bar.
Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by compiling the entire database, available on
the Debug menu), go back in and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)

For far more than you could ever want to know about this problem, check out
http://members.rogers.com/douglas.j.steele/AccessReferenceErrors.html
 
J

JO

Everything Doug said is useful. The necessary reference to add to solve the
Left( problem should be the Microsoft DAO 3.6 Library
 
E

Ernie

Dear Douglas and JO
Problem solved - Thanks a bunch! You saved my evening (my wife was getting
impatient, since it's her database!)
Ernie
 
D

Douglas J. Steele

There's no reason to assume that the DAO library is involved.

In actual fact, the Left function is contained in the VBA library (the
actual file will differ depending on what version of Access you're using,
but most recently is VBE6.DLL)

The problem is that if any reference is broken, it affects functions
contained in any of the libraries, so you can't predict which library is
causing the problem simply knowing the function(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top