View Single Post
  #3  
Old February 21st, 2008, 10:38 PM posted to microsoft.public.access.queries
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Undefined function 'Left' in expression

Even though you've said you've checked the references, odds are that's the
problem.

Open any code module. 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 doing a Compile All Modules), 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://www.accessmvp.com/djsteele/Ac...nceErrors.html, or check my
December, 2003 "Access Answers" column in Pinnacle Publication's "Smart
Access" (you can download the column, and sample database, for free at
http://www.accessmvp.com/DJSteele/SmartAccess.html)


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"The Joker via AccessMonster.com" u17775@uwe wrote in message
news:8014e3747fd23@uwe...
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!

--
Message posted via http://www.accessmonster.com