Re: ExecuteNonQuery - problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks, Branco. I copied that from a console app that I wrote
to do testing.
Robin S.
"Branco Medeiros" <branco.medeiros@xxxxxxxxx> wrote in message
news:1167579638.440417.301010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

b_r wrote:
Database is correct - for sure...

When I want to verify inserted row I got the following information:

A first chance exception of type 'System.InvalidCastException'
occurred
in Microsoft.VisualBasic.dll
<snip>

I guess Robin actually meant:

<snip>
For Each dr As DataRow in dt.rows
Debug.print "Found CompanyName: " & dr("CompanyName")
Next dr
<snip>

HTH.

Regards,

Branco.



.