Asked by:
Undefined function 'left' in expression (Windows 10/Access 2016)

Question
-
Hi All,
I just had Windows 10 installed and am now having a problem using the "left" function in an access query. My syntax is fine and has worked in the past, but is not working now. Message: Undefined function 'left' in expression
I saw a similar problem posted elsewhere and the resolution was to download web services from Microsoft. I followed the link mentioned and downloaded it, but it was only for Access 2003, so it did not help me.
Anyone know the fix to this problem?
Thursday, September 21, 2017 4:26 PM
All replies
-
Hi,
Installing a new OS probably means reinstalling Office as well. Typically, when you get an error for using built-in function like Date(), there is a broken reference in the database.
Go to the VBA window and click on Tools > References and look any reference marked as "MISSING." If you find any and don't need it, simply uncheck the box to fix the problem. Otherwise, you will have to reinstall the missing library.
Hope it helps...
- Proposed as answer by parrib1 Wednesday, June 6, 2018 8:04 PM
Thursday, September 21, 2017 4:40 PM -
Hello,
I agree with theDBguy. Please check if there is missing reference in this database. You could also try to create a new database to confirm whether the Left function would work.
According to this similar thread:Undefined function "left" in expression, you could also try to uncheck the reference: Utility.mda
Regards,
Celeste
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Chenchen Li Friday, September 22, 2017 5:27 AM
Friday, September 22, 2017 5:27 AM -
One thing I found recently is that if a function is in more than one reference Access 2016 is not very good at resolving it.
I got an error using the Left function and I finally found that because I had two references with a Left function Access threw an error that it was undefined. Once I removed one of the references the error went away. That of course is not helpful when you need both references.
Brad C. Parris Sr. IT Manager Custom Solutions
- Edited by parrib1 Wednesday, June 6, 2018 8:07 PM
Wednesday, June 6, 2018 8:06 PM -
One thing I found recently is that if a function is in more than one reference Access 2016 is not very good at resolving it.
I got an error using the Left function and I finally found that because I had two references with a Left function Access threw an error that it was undefined. Once I removed one of the references the error went away. That of course is not helpful when you need both references.
Brad C. Parris Sr. IT Manager Custom Solutions
Hi Brad,
If you need both references, then simply fully qualify your function call. For example:
VBA.Left([FieldName],10)
Hope it helps...
Wednesday, June 6, 2018 8:11 PM -
Thank you so much! This solved my problem!Friday, May 24, 2019 7:36 PM