Solved

Got error 0 when trying to run program by exe and no error when run it buy code

Posted on 2016-09-01
2
31 Views
Last Modified: 2016-09-20
When i run program exe and change the general tab text value and click on other tab without saving it show run time error 0.
But if i do same thing when i run program by code it doesn't show any error.
0
Comment
Question by:Nitin Rawat
2 Comments
 
LVL 46

Accepted Solution

by:
Martin Liss earned 500 total points (awarded by participants)
ID: 41780177
It would be a big help if you were to zip up and attach your project, but if I have to guess I'd say that you have an error routine at the bottom of some sub or function, but you don't have it preceded by an Exit Sub (or Function). For example if line 7 were missing you'd get error 0 when the sub was run.

Private Sub Example()

    On Error GoTo ErrorRoutine

    ' some code

    Exit Sub

ErrorRoutine:

    MsgBox Err.Number
End Sub

Open in new window

0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question