I
Ivan Weiss
I am assigning a string variable with my sql statement getting the item
from a listview filled from a database.
I am getting an error saying that & is not defined for types 'String'
and Systems.Windows.Forms.ListViewItems.
I am using an index of 0 because the value I want is in the first column
(it is the customer ID from the database)
Dim mySqlString As String
'Define sqlString that deletes from database
mySqlString = "DELETE from Customers WHERE Cust_ID = '" &
ListView.SelectedItems(0) & "'"
-Ivan
from a listview filled from a database.
I am getting an error saying that & is not defined for types 'String'
and Systems.Windows.Forms.ListViewItems.
I am using an index of 0 because the value I want is in the first column
(it is the customer ID from the database)
Dim mySqlString As String
'Define sqlString that deletes from database
mySqlString = "DELETE from Customers WHERE Cust_ID = '" &
ListView.SelectedItems(0) & "'"
-Ivan