I
Ivan Weiss
Hey guys, I am getting this error:
An unhandled exception of type 'System.NullReferenceException' occurred
in microsoft.visualbasic.dll
Additional information: Object Variable or With block variable not set.
Here is my code
Private Sub butSave_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butSave.Click
Dim myDatabase As New Database(Me)
Dim myArray As Array
myArray(0) = txtCompany.Text
myArray(1) = txtFeeder.Text
myArray(2) = txtAddress1.Text
myArray(3) = txtAddress2.Text
myArray(4) = txtCity.Text
myArray(5) = txtState.Text
myArray(6) = txtZip.Text
myDatabase.insertData("Customers", myArray)
End Sub
Any ideas why I am getting this error?
-Ivan
An unhandled exception of type 'System.NullReferenceException' occurred
in microsoft.visualbasic.dll
Additional information: Object Variable or With block variable not set.
Here is my code
Private Sub butSave_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butSave.Click
Dim myDatabase As New Database(Me)
Dim myArray As Array
myArray(0) = txtCompany.Text
myArray(1) = txtFeeder.Text
myArray(2) = txtAddress1.Text
myArray(3) = txtAddress2.Text
myArray(4) = txtCity.Text
myArray(5) = txtState.Text
myArray(6) = txtZip.Text
myDatabase.insertData("Customers", myArray)
End Sub
Any ideas why I am getting this error?
-Ivan