View Single Post
  #2  
Old February 21st, 2008, 10:37 PM posted to microsoft.public.access.queries
fredg
external usenet poster
 
Posts: 4,386
Default Undefined function 'Left' in expression

On Thu, 21 Feb 2008 21:52:12 GMT, The Joker via AccessMonster.com
wrote:

Hello all,

First off I want to say I read a lot of the previous posts about this issue
and none seem to be similar to mine. I am working on a database someone
before me had created, actually it was two databases so I'm combining them
into one since there is no reason to have two of them and I'm automating them
to buttons (instead of manually running multiple queries, macros, etc). Now
when I run through the queries I'm getting the "Undefined function 'Left' in
expression" error. This doesn't deal with VBA, just simply queries but I
still checked for missing references and there were none. I've tried now
creating a basic query with only one field and used the Builder to create an
expression using left on a select query and it still gives me this error.
What would make it so I can't use the Left function in any query? Thanks for
any assistance you can provide!



It most likely is a missing reference.

Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

For even more information, see
http://www.accessmvp.com/djsteele/Ac...nceErrors.html
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail