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
34 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 64
Updates not working for MS Windows 7 12 181
Run code from text file in vb 1 71
using web browser with BING 40 131
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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