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
"Claudia Fong" <cd********@yahoo.co.uk> escribió en el mensaje
news:OJ**************@TK2MSFTNGP10.phx.gbl...
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
*** Sent via Developersdex http://www.developersdex.com ***