Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Left Function not recognized

Status
Not open for further replies.

lbigk

MIS
May 24, 2002
58
US
Hello,

I am using Access 2003 and I am not sure which library is missing, but when I create a basic select qry and use "Left" function, I get the following error "Undefined function 'Left' in expression. Right and Mid functions work just fine.

Thank you.
 
Look at the references* and see if any are marked MISSING.



===================
* Code Window -> Tools -> References
 
I have about 15 references added, I checked all the usual suspects: VBA, Object library... Is there a specific one I should check for?
 
No, any reference that is marked MISSING could be the cause of the problem. It will be clearly marked. If this is not the case, try unchecking your references and checking them again.
 
I've also found over the years that in dbs with complex forms &/or reports (with VBA code), Access sometimes fails to compile properly, eg, it doesn't recognise basic things like 'Me' in code.

The 'fix' seems to be to decompile the code, and then recompile it, followed by a Repair/Compact. To decompile, run this from the command line (or a shortcut you set up), like this:

[PathToAccess] [PathTpMDB] /decompile

HTH

Max Hugen
Australia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top