Access 2010 Compile Error - Missing Reference

I'm trying to convert my 2003 Access application to Access 2010.  I'm getting a Compile error when it get to a Left function statement.  The error indicated that I have a missing reference.  When I go to the ribbon the Reference link is inactive, so I can't fix it.

What do I do.

JudithARyanTech SupportAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
hit Alt + F11
this will open the VBA window
from the menu
Tools > references

look for MISSING: <reference>
uncheck then clikc ok

DO a Debug > Compile

correct any errors raised
Make sure the app complies in A2003 on your PC before attempting to convert it.  That will ensure that all the references are loaded.
JudithARyanTech SupportAuthor Commented:
I tried opening a different version of the application and it opened with no problem.  I checked references and none are missing.

So, my next question is how can I compile it under Access 2010 (It compiled fine under 2003) and convert it to an Access 2010 app.  By the way, I converted the backend to .accdb and every converted fine.

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Hamed NasrRetired IT ProfessionalCommented:
Left is a function in VBA for access versions including 2003 to 2013.
" how can I compile it under Access 2010 "

Follow Rey's comment.
VBA Editor window: Debug > Compile ..

Back End compiles fine because it contains the tables. Compiling refers to checking the VBA code which resides in the Front End.
Hamed NasrRetired IT ProfessionalCommented:
Try, on a copy of the database, to decompile then recompile.

Type in the Run box:

<full path of access> <full path of database> /decompile

This will force you to correct every non compatible statement.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Did you get the "Missing Reference" error on YOUR machine, or another? If it's on a different machine, then you have to check references on that machine, not yours.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.