>hi i've this code:
>
>Try
> oleconnect.Open()
> Catch ex As OleDbException
> For i As Integer = 0 To i < ex.Errors.Count - 1
> MessageBox.Show("Indice " & ex.Message & ex.Errors(i).ToString)
> Next
> End Try
>
>but if i've an error not entry to cath .
Daniel,
The error you're having might not be of type OleDbException. Your code has catch for OleDbException only. ie:
Try
oleconnect.Open()
Catch ex As OleDbException
For i As Integer = 0 To i < ex.Errors.Count - 1
MessageBox.Show("Indice " & ex.Message & ex.Errors(i).ToString)
Next
catch otherex as Exception
End Try
Cetin