Link to home
Create AccountLog in
Avatar of Bob Collison
Bob CollisonFlag for Canada

asked on

MS Access 2010 - Error 53-File Not Found

Hi Experts,

All of a sudden (I was working ok for about 3 hours and then when I switched a form I was working on from Design to View) I receive this error with a section of VBA Code displayed that has nothing to do with the form I was working on.

The Help associated with Error 53-File Not Found doesn't help.

I can Compact & Repair the .accdb but I can't compile into an .accde.

Can you please point me to where I might correct the problem?  The code is about 98 Meg so not easy to supply.  It also requires a specific Path setup to run.

Thanks,
Bob C.
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Where exactly and what is the Compile error (message, etc)
Is it possible that anyone else (or a software utility) opened the database while you were working on it?
ah Joe, come on buddy, it's decompile time!

Jim.
ah ... wanted to take the long way around :-)
Coming to the Summit ??????????????
Avatar of Bob Collison

ASKER

Hi Joe,

If I click on a button on a form that I use as a menu to open the form I was working on, a Dialog Box opens with a Heading of: Microsoft Visual Basic For Application, a Message of 'File not found' and the options of OK and Help.

If I click OK a Visual Basic Window displays at the last point in the code that I had been in.

If I click on a button to open another form on the menu that form opens ok.

Therefore it appears to be directly related to the specific form I was working on.

Thanks,
Bob C.
Hi Experts,

This is on a stand alone PC and I am the only one working in it.

Thanks,
Bob C.
Open the VBA Editor >> Debug >> Compile.
Report back what happens ?
Should show where error is and what error is.
Hi Joe,

When I do this the message displays at whatever point I am in in the code.  If it is the form I was working on it displays there.  If I open the VBA Editor at an Event in another form, then close the VBA Editor and the form and then try to open the form that I was originally working on, the error displays and takes me to the last VBA Code that had been opened (not related to the form I was originally working on).  i.e. It doesn't appear to be taking me to where the error exists.

Thanks,
Bob C.
Well ...  but with the VBA editor open ... in any Module/Procedure or a Form Module/Procedure .... you need to hit the Compile button ... so we can see what is up ...

Not really enough information to go on yet.

If nothing else, we can try Decompile ...
Hi Joe,

I can't think of how to get additional information.

How do I do a decompile?

Thanks,
Bob C.
Well ...are you not able to Open the VBA Editor and from the Debug menu ... hit Compile ?
Because IF there is really a Compile error ... Decompile is not going to directly fix it.
Hi Joe,

I can open the VBA Editor and from the Debug menu click Compile at which point the Error message displays.

Thanks,
Bob C.
OK ...  
Where in the code - can you post that code?
It must be occurring on a specific line of code ?
Hi Joe,

I followed the steps verbatim in the Decompile Attachment.

When I got to Step 6B (From the VBA Editor...) after clicking the Debug > Compile option I get the File Not Found Error Message.

I then went on to Steps 7 & 8 but I still have the same problem exactly.

Thanks,
Bob C.
Yep ... that's what I'm saying.  Need to fix the compile error.
So ... need to see the code where the compile error is occurring.
Either post that section of the code, or upload a db wherein the error can be reproduced.

fyi ...  I'll be offline for about 1.5 -2.0 hours starting now ...
Hi Joe,

It does not occur at a specific line of code.  Goes to the last Event I had open. i.e. Not necessarily in the code for the form I was working on when I encountered the error.

If I last had open the code of the form I was working in, it opens there.  If I open code for some other Form Event, close the Event and Form and try to open the form I was wos originally working on when I ran into the problem, it opens the code of the 'some other Form Event'.

Since it doesn't open where the error occurs I have no idea where to start looking for the source of the problem.

Thanks,
Bob C.
I see.
First ... is there any 'file' that you can imagine that might be 'missing' ?
And you did do a Compact &  Repair if I recall ?
Without the db ... it's very difficult to troubleshoot.

One other thing to check ... References.
Again, open the VBA Editor >> Tools >> References.  Look for any listed as:
**MISSING <SomeReferenceName>
Hi Joe,

I did check the References and none of those I use are missing.  I didn't check those I don't use since the list is very long.

Yes, I have tried Compact / Repairs numerous time throughout our discussions without success.

As a matter of course before I make too many changes I Compact & Repair / Compile and save the result as a backup in case I run into this type of problem.

I had made changes to one form and was in the process of this second form when I ran inot the problem.

I backed up my backup and using the backup copied the changes from the file with the problem.  It compiles ok.  So now I am just missing the latest change which was minor (adding a lable) and I'm up to date.

At this point I'm ok if you are to close this case with a solution of reverting to a bacvkup.

It would be nice to solve the problem but at this point I'm not optimistic..

Please let me know.

Thanks,
Bob C.
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Hi Joe,
I too prefer to determine / understand a problem and them come up with a solution.  I was a System Architect for Canada's' largest bank.

However sometimes after a considerable amount of effort it just isn't worth the trouble.  I did note that the Help for the error indicated that it could be a dll problem with Visual Basic which probably meant that I would have to re-install it.  Not my favourite option.  Since going back one version and then duplicating the changes without any problems it appears a really odd ball cause.

So I'll do a little more coding tomorrow and if I don't run into the error again I will close this case.

Thanks for all your efforts.
Bob C.
Bob,

<<I did check the References and none of those I use are missing.  I didn't check those I don't use since the list is very long.>>

1. Check any un-checked reference (doesn't matter which).
2. Close the DB and Access.
3. Re-open and un-check the reference you just checked (it will be the last)
4. Now try a compile....still the same error?

Jim.
Hi Jim,

The result of trying your suggestion is as follows.
1. After checking a Reference I closed the Code Window. The Application Form I was originally on displayed with the Message.
2. I couldn't close the application (the Message stopped me).
3. Changed to Design View and closed the form.
4. Closed the application.
5. Opened the application and the Message displayed.
6. Opened the Code Window, accessed the Tools > References and deselected the last Reference.
7. Closed the Code Window and the Message displayed.

Jim,
I don't see how this can be a References issue when my immediately previous version of the application that I compiled was ok and still ok after making the changes between that version and the one with the problem that now compiles ok.

Thanks,
Bob C.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Hi Jim,

Thanks for the information and insight into when these various conditions / errors may be created as well as the possible solutions to them.

I have done a lot of coding today on the form that I was working on when I encountered the error, without any problem.

I plan on closing this case latter today if all continues to go well.

Thanks,
Bob C.
Hi Experts,

When we get to this situation its a little complicated as to what is the 'Best Solution'.  I picked Joe's last entry since he put most of the work into this with assistance by Jim.

Thanks for all your effort.
Bob C.
Sorry we couldn't figure this out ... hate to leave loose ends.  But ... thx.