System.Data.OleDb.OleDbException

  • Thread starter Thread starter Claudia Fong
  • Start date Start date
C

Claudia Fong

Hi,

Does someone can explain to me why this exception
(System.Data.OleDb.OleDbException) occurs and is there a way to prevent
it?

The whole message is:

An unhandled exception of type 'System.Data.OleDb.OleDbException'
occured in System.data.dll


Cheers!

Claudi
 
First, you need to use a try/catch block to handle the exception and make
your program more robust. In the catch block, use the ToString method of the
exception to get info about it, specially to know the line which caused it
(use the Debug configuration, not the Release configuration).

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top