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
44 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

717 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