Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to trap for format errors in vb.net

Posted on 2004-09-22
3
Medium Priority
?
146 Views
Last Modified: 2010-04-23
I am writing data to a table.  Intermittently I will get a format error.  I can click ok and the job will continue.  The error does not give me any detail other than format error.  Is their any way I can trap for these kinds of error messages to give me more detail of what the problem is????

Thanks
Kenny

0
Comment
Question by:kwh3856
[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
3 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 1500 total points
ID: 12126612
Put it into try catch block and read the error message (err.Description)
0
 

Author Comment

by:kwh3856
ID: 12127543
Is the err.Description a specific function of vb.net where it give more detail.  The way I currently handle the error is as follows:


Try
....
.,..
....

Catch ex As Exception
    MsgBox(ex.ToString())

EndTry

Or does this code do the same thing?

Thanks
Kenny


0
 

Author Comment

by:kwh3856
ID: 12136836
Thanks for the help


Kenny
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

618 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