MS Access 2007 Run Time Error

I am working on a rather simple application in MS Access 2007.  When deploying the application as a package created with the deployment wizard included with MS Access I get the following error message from the application when running under the run time system.  Error: Run Time Error - "Execution has stopped due to a run-time error."  No further information is presented.  Any suggestions?

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.

There must be a syntax error in the program. Go to 'Database Tools' > 'Visual Basic' and from the VBA editor window go to Debug menu and select first option = 'Compile'.

It will show all the errors you will have, rectify them and try again.

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
If you have complied the code that you have written (assuming you have written your own code), then it is likely a corruption on a form.  In order to rectify you need to find the errant form - difficult, then create a new DB and import all elements into the new DB, slowly and try to create the deployment package - I usually do forms first, tehn reports, then queries and so on.
You may not have a compile-time error, but a run-time error, which is an error than only shows itself when you run your application. As mentioned on the following page from Microsoft, the runtime dialog box for these errors is different and does not give much good information. You will need to run full Access on that machine or an identical environment to catch and debug the error, unless you change your code to include more error trapping.

See the "Error Handling" section of this page:

And further general information is at:
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Boyd (HiTechCoach) Trimmell, Microsoft Access MVPDesigner and DeveloperCommented:
When using the Access Runtime with a accdb you must have rock solid and complete error handling for run time errors.

To find the error you will need to add error trapping code to identify the error and display a message.. I like to also log the errors

Is your database split and the front end compiled into a ACCDE?

Boyd (HiTechCoach) Trimmell, Microsoft Access MVPDesigner and DeveloperCommented:
TIP:  Rename your .accdb or .accde to a .accdr. When you open the database it will force Access into runtime mode so you can try to recreate the issue.
jimmurchAuthor Commented:
Tried this.  Got a clean compile under regular Access but still had general error message under run time.  Have since found my problem.
So, what was the fix - so we can all learn!
jimmurchAuthor Commented:
The problem was my mistake.  I did not realize that the run time version generated such a limited error message.  Normally I run under the development system and do not use the run time system.

I did have error checking in my routines but in error I had deleted the last few lines in the subroutine on which I was working.  This included deleting the error checking code and the 'end sub' statement.  Apparently VBA did not find an end sub before dropping into the next subroutine.  Foolish me!
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.