Hi
I'm trying to add the values stored in an array into a database. I'm trying to use the following code.
But i keep getting an "object reference not set to an instance of an object"
Can anyone help?
Thankyou
I'm trying to add the values stored in an array into a database. I'm trying to use the following code.
VB.NET:
Dim mob(11) As String
mob(0) = currentRow(0).ToString
mob(1) = currentRow(1).ToString
etc
cmd.CommandText = "INSERT INTO table (field)
VALUES (mob(0))"
But i keep getting an "object reference not set to an instance of an object"
Can anyone help?
Thankyou